Jump to content

shopping cart form with checkboxes


akuji36

Recommended Posts

Something along these lines should work for ya...

 

<form>
<input type="checkbox" name="Whatever[]" value="yourcheckboxvalue">
</form>

$myArray['checkboxarray'] = $_POST;

foreach ($_POST[checkboxarray]['whatever'] as $key => $value) {
mysql_query("DELETE FROM yourTable WHERE yourColumn = '$value'");
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.