when this is submitted it displays the correct info, but does not maintain the checked boxes...PHP Code:<form method="post">
<input type="checkbox" name="size[]" value="m">
<input type="checkbox" name="size[]" value="l">
<input type="checkbox" name="size[]" value="xl">
<input type="submit" name="go" value"Submit This"> <strong>Tomato Margherita - </strong> fresh tomato, olive oil, fresh basil, oregano and mozzarella<br>
<?if ($go and $HTTP_POST_VARS['size']){
//$size = $HTTP_POST_VARS['size'];
//echo $size[1];
foreach ($size as $f) {
echo $f."<br />";
}
} ?>
here is the site
http://www.questfor3d.com/phptest/FoodOrder.php




Reply With Quote