I got some $POST/$GET variables problem.
<?php
echo "<p>count (\$POST['checkbox']) = ".count ($POST['checkbox']);
foreach($POST as $key => $value){
echo "<p>$key - $value";
}
?>
<form method="POST" action="<?php echo $ENV['PHP_SELF']; ?>">
<input type="checkbox" name="checkbox" value="1" checked/>
<input type="checkbox" name="checkbox" value="2"/>
<input type="checkbox" name="checkbox" value="3" checked/>
<input type="checkbox" name="checkbox" value="4" checked/>
<input type="checkbox" name="checkbox" value="5"/>
<input type="submit"/>
</form>
Result is wrong:
count ($_POST['checkbox']) = 1
checkbox - 4
Looks like $_POST keeps only last value. I think some php.ini settings are not correct, but I'm not sure.
Any Ideas?