Value returned from checkbox?
Posted: Sat Mar 17, 2007 7:14 pm
This seems like a simple question, but...
What value is returned from a checkbox in a form?
For example, if the checkbox was named "word" ie. <input type="checkbox" name="word">...
I looked at Echo $_POST['word'], the value shown was "on", yet an, if ( $_POST['word'] == "on" ) or ( $_POST['word'] == on ) wouldn't return true. I've tried many other things too but none seem to work
/me scratches head... Anyone know?
What value is returned from a checkbox in a form?
For example, if the checkbox was named "word" ie. <input type="checkbox" name="word">...
I looked at Echo $_POST['word'], the value shown was "on", yet an, if ( $_POST['word'] == "on" ) or ( $_POST['word'] == on ) wouldn't return true. I've tried many other things too but none seem to work
/me scratches head... Anyone know?