If they're the only input in the form, you could do something like:
foreach($_GET as $key=>$value){
if(!array_key_exists($key,$_GET)){
$_GET[$key] = 0;
}
}
//Subsitute $_POST for $_GET if it's a post form.
Paul Kaiser wrote:
Hey there,
I have around 50 checkboxes on an HTML form. Their "value"
Regards
Jarrad Kabral
-Original Message-
From: Paul Kaiser [mailto:paukai@;illinimedia.com]
Sent: Friday, 25 October 2002 7:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Quick way to test series of integers
Hey there,
I have around 50 checkboxes on an HTML form. Their "value" is &qu
OTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 3:35 PM
Subject: [PHP] Quick way to test series of integers
> Hey there,
>
> I have around 50 checkboxes on an HTML form. Their "value" is "1". So,
> when a user check the box, then no pro
Hey there,
I have around 50 checkboxes on an HTML form. Their "value" is "1". So,
when a user check the box, then no problem -- the value returned by the
form is "1" and I can enter that into my SQL database.
HOWEVER...
If the user does not check the box, I'm in trouble, because the "value"
does
4 matches
Mail list logo