From: "Sancerni Veronica" <[EMAIL PROTECTED]>

 when it is supposed to send the selected objects with a checkbox to the
next page. It doesn't while everything works just fine without the grid.
$td = "<td width=\"$width%%\">%s<input name=\"$value\" type=\"checkbox\" value=\"$value\">Add to Cart!</td>";

While stab in the dark here, since I don't really know what you're after and I'm not reading through all of your code. If you don't name checkboxes as an array, you'll only ge the last checkbox value passed to PHP. You should name them like this:

<input type="checkbox" name="value[]" value="1">
<input type="checkbox" name="value[]" value="2">

Then you'll have $_POST['value'] as an array you can loop through.

This may not matter for your code if "$value" is different each time and doesn't match any other form elements, though. How do you know this "doesn't work"? If you do a print_r($_REQUEST), do you see any of your checkbox values being passed??

---John Holmes...

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to