www.webdeveloper.com

Search:

Type: Posts; User: ScottyBoy

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    888

    I see. Well in that case, I withdraw my...

    I see. Well in that case, I withdraw my correction. Thank you for pointing that out to me, as I didn't know that there was an exception for "Dear someone" ;)
  2. Replies
    8
    Views
    888

    * Some random English forum...

    * Some random English forum
    http://www.usingenglish.com/forum/general-language-discussions/3147-commas-before-after-names.html#post17265

    * Rule 4...
  3. Replies
    8
    Views
    888

    I'm gonna play Grammar Nazi for a second. You...

    I'm gonna play Grammar Nazi for a second. You should always add a comma before someone's name when addressing them. For example "Dear, John" or "Hello, Sarah."



    $body = "Dear, " . $fn . " " ....
  4. Replies
    5
    Views
    2,567

    Good thinking. I'll definitely keep that in mind...

    Good thinking. I'll definitely keep that in mind for future use. :)
  5. Replies
    6
    Views
    472

    You should also check that $_GET['famType'] is a...

    You should also check that $_GET['famType'] is a key in $famTypes before attempting to use them together.



    <?php
    error_reporting(-1);

    $famTypes = array(
    "M01" => "X01 - First family",...
  6. Replies
    2
    Views
    530

    If it happens the next day and not immediately,...

    If it happens the next day and not immediately, it could be a cron job or some other scheduled task clearing your table.
  7. Replies
    5
    Views
    2,567

    I also run most data through htmlspecialchars()...

    I also run most data through htmlspecialchars(). It converts HTML to character codes, so it doesn't effect the page.
  8. Replies
    41
    Views
    5,351

    I'm a NetBeans user coming from TextWrangler....

    I'm a NetBeans user coming from TextWrangler. While all I really "needed" was syntax highlighting, having the automatic error checking made my development go so much faster. And of course the auto...
  9. Replies
    41
    Views
    5,351

    I'm glad we have NogDog on this forum. It it...

    I'm glad we have NogDog on this forum. It it weren't for his wicked awesome mastery of the PHP language, I'd still be stuck in some nasty holes.
  10. You probably have to download the button images...

    You probably have to download the button images and upload them to your server. There's no domain in the image source, so it's assuming the images are in the same directory as your HTML page.
  11. Replies
    41
    Views
    5,351

    That's for sure. I kind of prefer the syntax...

    That's for sure.

    I kind of prefer the syntax of languages like Python, where if you don't properly indent code, it simply doesn't work.



    if x < y:
    print 'something'
  12. Replies
    41
    Views
    5,351

    One thing that I think is worth mentioning, and...

    One thing that I think is worth mentioning, and I've seen in some examples here already, is that SQL can and should span multiple lines. From what I've seen, a lot, if not most people tend to write...
  13. Replies
    9
    Views
    1,823

    As I understand it, if you compile the script,...

    As I understand it, if you compile the script, there is little or no guarantee that it will work on their web host. Also, it's very unusual to sell someone a closed source script, and you run the...
  14. I used this all the time before I started doing...

    I used this all the time before I started doing my own graphics.

    http://cooltext.com/
  15. Replies
    9
    Views
    1,823

    You could compile it as a CGI script I think....

    You could compile it as a CGI script I think. However, when most people buy code modules or websites, they want it to be editable.
  16. Replies
    5
    Views
    1,355

    http://www.php.net/manual/en/function.setcookie.ph...

    http://www.php.net/manual/en/function.setcookie.php

    You have to call that function BEFORE any other output, including HTML and echoed text.



    <?php
    setcookie('name', 'value');
    ?>
  17. Replies
    5
    Views
    873

    Are you by chance taking Zend certification?

    Are you by chance taking Zend certification?
  18. What he said. And you should also check all the...

    What he said. And you should also check all the post variables you're using, not just one.
  19. Last I checked, session_start() needs to be...

    Last I checked, session_start() needs to be called before anything is output, or you'll have errors. Basically you should be doing script work before putting any text or HTML on the page. This takes...
  20. Replies
    5
    Views
    1,355

    Generally you'd want to use sessions instead of...

    Generally you'd want to use sessions instead of cookies for user login. And if reg_form_detail.php is being included, that means your condition is true. So obviously either $_COOKIE['user_id'] is no...
  21. Replies
    1
    Views
    708

    Usually the way you'd accomplish this would be to...

    Usually the way you'd accomplish this would be to put your menu in a separate file and function, and include that file where you need it. For example:

    Menu.php


    <?php
    function menu()
    {
    ...
  22. Replies
    3
    Views
    1,562

    Try this. foreach ($seeds as $supercolor)...

    Try this.



    foreach ($seeds as $supercolor)
    {
    if(in_array($supercolor, $XPcolors))
    echo '<option value="', $supercolor, '" SELECTED>', $supercolor, '</option>';
    else
    echo '<option...
  23. I believe that code would go in the file you wish...

    I believe that code would go in the file you wish to disable magic quotes on. Sort of an on the fly option.
  24. Replies
    4
    Views
    800

    Here's some sample code for a JavaScript powered...

    Here's some sample code for a JavaScript powered model window. You can just save this as a file and open it in a browser for an example. There isn't much there, but it should be close to what you're...
  25. You could probably also put the file outside the...

    You could probably also put the file outside the public_html directory, and use readfile() to get it. That would keep people from accessing it directly, should they guess the url of the file itself.
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles