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.
Bookmarks