checking if checkbox is checked

From: Date: Wed, 04 Jul 2001 22:52:04 +0000
Subject: checking if checkbox is checked
Groups: php.general 
Request: Send a blank email to php-general+get-56240@lists.php.net to get a copy of this message
I have 5 checkbox's in a form that I what to make sure at least one of the checkbox is checked. <input type='checkbox' name='interest' value='basic'> <input type='checkbox' name='interest3' value='Internet access '> <input type='checkbox' name='interest1' value='pro'> <input type='checkbox' name='interest4' value='domain name'> <input type='checkbox' name='interest2' value='platinum'> I am checking for blank field buy doing this below How can I check for at least one of the above check boxes is checked if ($name == "") { $name_err = " <font color=red>Please enter your name!</font><br> "; $send = "no"; } Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#56240) next »