If a heckbox is left blank, then the webserver does not pass it's name/value
pair on to the PHP processor.
This means that if you have
And the box is not checked, then when your script recieves the form,
$_POST['foo'] will not be available.
So to test for it, use isset($_POST['foo']) to see if
try $_POST['name_of_the_checkbox']
or just $name_of_the_checkbox (if you have register_globals set to on)
-Original Message-
From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting values of Checkboxes
I
2 matches
Mail list logo