Your code appears to be under the assumption that register_globals is on. While it may be for your current server, this is a pretty old way of constructing pages and is highly recommended to update several things. Chiefly
feyd wrote:Your code appears to be under the assumption that register_globals is on. While it may be for your current server, this is a pretty old way of constructing pages and is highly recommended to update several things. Chiefly
isset() or array_key_exists() to check if they exist before attempting to use them. This is the solution to your question as well.
'NULL' and NULL are two different things to a database. You want the latter.
rename keyword fields in database to non-keywords. e.g. "date"
use native date format of database instead of your own
stop using $PHP_SELF in any form it may be in. "#" is safer.
I also noticed you're using <font> tags. That's pretty old school too.
this is goin to sound really stupid but... i dident understand a word of that and mate gave me the script and i edited it changing the form please help me
feyd wrote:Sorry, I'm not going to do the work for you.
i just dident get what u meant comeon im 15 and i wanna learn
Take it one step at a time, I think what Feyd said is very straight forward. So what exactly don't you understand?
# $_POST for each of the fields being submitted
# isset() or array_key_exists() to check if they exist before attempting to use them. This is the solution to your question as well.
# rename keyword fields in database to non-keywords. e.g. "date"
# use native date format of database instead of your own
# $_POST for each of the fields being submitted
were ?
# isset() or array_key_exists() to check if they exist before attempting to use them. This is the solution to your question as well.
totaly dont get
# rename keyword fields in database to non-keywords. e.g. "date"
dose he mean for like "interviewed" put like "iv" in the database ?
# use native date format of database instead of your own