 |
| ::: T4VN Statistics ::: |
PHP Scripts : 61 |
PHP Example : 67 |
PHP Tutorials : 21 |
PHP News : 93 |
Total Coupon : 36 |
Other Tutorials : |
Member : 209 |
Visitor Online : 2 |
Today Visit: 403 |
Total Visitor : 262413 |
Most Online : 31 |
|
 |
 |
Checkbox
Author : morad
when you need to a lot of checkbox, you should use this code...
| PHP Example : | | <?
if ($HTTP_POST_VARS['check']) {
$box=$HTTP_POST_VARS['box1']; //as a normal var
$box_count=count($box); // count how many values in array
foreach ($box as $dear) {
echo $dear."<br>";
}
echo "<hr>";
}
?>
<form name="hede" method="POST" action="">
<input type="checkbox" name="box1[]" value="1"> 1
<input type="checkbox" name="box1[]" value="2"> 2
<input type="checkbox" name="box1[]" value="3"> 3
<input type="checkbox" name="box1[]" value="4"> 4
<input type="checkbox" name="box1[]" value="5"> 5 <br><br>
<input type="checkbox" name="box1[]" value="6"> 6
<input type="checkbox" name="box1[]" value="7"> 7
<input type="checkbox" name="box1[]" value="8"> 8
<input type="checkbox" name="box1[]" value="9"> 9
<input type="checkbox" name="box1[]" value="10"> 10 <br><br>
<input type="submit" name="check" value="SEND">
</form>
| |
| |

|
 |
| ::: Resources ::: |
|
|
| ::: New Templates ::: |
|
| ::: Other Tutorials ::: |
|
 |