Results 1 to 4 of 4

Thread: Error with part of an if statement

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default Error with part of an if statement

    I got this error when building the validation for one of the forms.
    the error is:
    Parse error: syntax error, unexpected T_IF in C:\wamp\www\getaband.net\register\musicians.php on line 41
    This is line 41:
    PHP Code:
    if($_POST['sex']=="male" || $_POST['sex']=="female"){ 
    I can't seen what I've done wrong. If someone could help me out that would be great.

    THANKS!

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    what is the line above it? it could be missing a ;
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@ /\/\@|{
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. The Following User Says Thank You to Master_script_maker For This Useful Post:

    Rockonmetal (09-06-2008)

  4. #3
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    you must be psychic, thats what was wrong... i wonder what else you know... lol :P

  5. #4
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    haha. im not psychic, but you won't believe how many times that same error has happened to me.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@ /\/\@|{
    There are 10 kinds of people in the world, those that understand binary and those that don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •