PHP 4.0 Bug #5550: <input type=checkbox name=\"test[$i]\"> is not working correctly when submittin
| From: | stormlord at the dot net dot nz | Date: | Thu, 13 Jul 2000 10:31:15 +0000 |
| Subject: | PHP 4.0 Bug #5550: <input type=checkbox name=\"test[$i]\"> is not working correctly when submittin | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24280@lists.php.net to get a copy of this message | ||
From: stormlord@the.net.nz
Operating system: Linux
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Other
Bug description: <input type=checkbox name=\"test[$i]\"> is not working
correctly when submittin
<?
if(!$submit)
{
echo"<form method='POST'>\n";
for($i=0;$i<10;$i++)
{
echo"<input type=checkbox name=\"todel[$i]\"
value=\"pjd$i\"><br>\n";
}
echo"<input type=submit name=submit value=submit><br>\n";
echo"</form>\n";
}
else
{
for($i=0;$i<count($todel);$i++)
echo"$i - todel = ".$todel[$i]."<br>";
}
?>
Ok.. now try selecting 2,3,4 in the check box and submit and see if it gives you
the correct values.. its just not working correctly!!! :LLLLL Help!! :)
I've installed PHP4 the way the www.linuxguruz.org site have listed in their
tutorial for PHP + MYSQL + SSL :)
Cheers
Paul.