here is a trick i use
php picks up on this
<input type="submit" name="delete[12]" value="Button Text" />
html <... name="delete[12]" ...>
turns into
$delete['12'] = 'Button Text'
ok so now an html form will only submit one button
so you will only ever get an array with one key and one value
the value is just the button text and doesn matter
you just want the key
list( $item_to_delete, ) = each($delete);
now $item_to_delete is set to 12
hope this trick helps