I try to run this script
<form action="test.php" method="POST">
Test 1
<input type="checkbox" name="server[]" value="ASP"> ASP
<input type="checkbox" name="server[]" value="C#"> C
<input type="checkbox" name="server[]" value="COLDFUSION"> ColdFusion
<input type="checkbox" name="server[]" value="JAVA"> Java
<input type="checkbox" name="server[]" value="PERL"> perl
<input type="checkbox" name="server[]" value="PHP"> PHP
<input type="submit" value="submit">
</form>
<?php
print_r($_POST);
?>
then I've check all the checkboxes,
and guess what the print_r says?
Array
(
[server] => Array
(
[0] => ASP
[1] => C#
[2] => FUSION
[3] =>
[4] =>
[5] => PHP
)
)
Why did it comes out that way?
Anyone care to explain?
Btw, mine is PHP/4.2.3 vs APACHE/1.3.26 run on Win98Se