>> I have a page with a Form and a Checkbox. >> >> I have a second page which wants to do something depending on if the >> checkbox is selected or not. >> If its selected there is no problem. But if I tryand do anything if >> it isn't selected then it says the variable is 'undefined'. How can I >> test
For checkbox's I like to have a HIDDEN checkbox. <INPUT TYPE=hidden NAME=blah VALUE=""> <INPUT TYPE=checkbox NAME=blah VALUE="1"> <INPUT TYPE=checkbox NAME=blah VALUE="2"> <INPUT TYPE=checkbox NAME=blah VALUE="3"> With the hidden name and value, I'll always have at least a blank form variable passed. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php