Re: [PHP] Quick way to test series of integers

2002-10-24 Thread Leif K-Brooks
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"

RE: [PHP] Quick way to test series of integers

2002-10-24 Thread Jarrad Kabral
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

Re: [PHP] Quick way to test series of integers

2002-10-24 Thread Kevin Stone
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

[PHP] Quick way to test series of integers

2002-10-24 Thread Paul Kaiser
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