Results 1 to 2 of 2
Thread: Why does this happen?
Apr 2, 2002, 10:51 #1
- Join Date
- Mar 2002
- 0 Post(s)
- 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.
Apr 2, 2002, 12:55 #2
The only thing I can think of is that you may have done something with the var at another point in your script
-- You lived inside my world so softly
-- Protected only by the kindness of your nature