SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    England
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why does this happen?

    I have a page that allows users to sign up for a site (a dating agency for my university project), obtaining a username and password and entering details about themselves for their profile.
    One of the things they have to do is select their eye colour from a drop down list. This variable was called $NEWEYES. However, no matter what colour the user selected this always resulted in a blank entry in the database (all 28 of the other entries such as hair colour, name, height etc. worked OK).
    I changed the variable name to $NEWEYECOLOUR and it now works so it seems PHP had a problem with the variable name $NEWEYES.
    Just wondered if anyone could shed any light on why the name wouldn't work.

    Cheers.

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only thing I can think of is that you may have done something with the var at another point in your script

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


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
  •