Re: [PHP] checking if checkbox is checked

2001-07-06 Thread Michel 'ZioBudda' Morelli
On Wed, 4 Jul 2001, Richard Kurth wrote: I have no try, but.. > > > > > > change interest* in interest[] (without number in []). in the .php file use if (count($interest) > 0) { echo "ok"; } else echo "no one check"; bye -- Non capisco tutta questa eccitazione per il multitasking: i

Re: [PHP] checking if checkbox is checked

2001-07-04 Thread Steve Werby
"Richard Kurth" <[EMAIL PROTECTED]> wrote: > I have 5 checkbox's in a form that I what to make sure at least one of > the checkbox is checked. > > > > > > if ( $interest == 'basic' || $interest3 == 'Internet access' || ... $interest2 == 'platinum' ) { echo "At least one was checked."; }

[PHP] checking if checkbox is checked

2001-07-04 Thread Richard Kurth
I have 5 checkbox's in a form that I what to make sure at least one of the checkbox is checked. 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 = " Please enter your