Checkbox form element is easy to applied in php
if you have a script like this :
form
input type=checkbox name=check1 value=someValuenbsp;Some Value
/form
Then to get the value of checkbox you can do this :
?php
// print the value of checkbox
echo $_POST[check1];
?
You can also use an array :
-Original Message-
From: Arie Nugraha [mailto:[EMAIL PROTECTED]
You can also use an array :
form
input type=checkbox name=check[] value=someValue1nbsp;Some
Value 1
input type=checkbox name=check[] value=someValue2nbsp;Some
Value 2
input type=checkbox name=check[]
?php
echo $_POST[check][2];
?
2) the name/value pair will only be POSTed if it's checked, so that
would only work if the first two were checked.
Some people like to pair all their checkboxes with a hidden of the same
name, the hiddens value will be sent if the checkbox isn't checked.
The