Hello, I'm just starting to use PHP after years of working with ASP, so pardon me if this sounds like a very basic question, but how do I get PHP to acknowledge zero (0) in a form field. Whenever the user enters "zero" and hits submit on the PHP form, it totally ignores the zero.
I am inserting the value into a MYSQL database and I initially thought I was setting my field type wrong, but running the SQL command with zero through PHPAdmin inserts the zero without any problem. I then echo'ed the formfield and found that it wasn't posting the zero at all--
echo $_POST[$stepnow]; yeilds nothing
echo "$_POST[$stepnow]"; yeilds nothing
I've also tried all the convert to string functions I can find and I've seached the web for a solution--all with no results. It appears that PHP is simply discarding the zero during the POST process. Any suggestions?