Ok, here's how I do it: =)
Delete checkbox's (assuming this is being called recursively, once
for each row in the db):
And on submition:
foreach($_POST[delete] AS $row)
mysql_query("DELETE FROM tablename WHERE id = '$row';");
Adam Voigt
[EMAIL PROTECTED]
> > Hi All,
> >
> >
> > In a
An "Real World" example of how I do a similar thing might help:
My list with checkboxes (since this is dynamic, I don't know what
numbers are assigned) $itemID is the id of the record from the mysql
table, so the check box name is 'chk_12' for id=12. $checkAll is a flag
if the user selected the
I would suggest doing a var_dump of $order_index and see what is in
there.
Plus, you should take out the values in the form arrays...
Just do:
name="order_index[]"
On Thu, 2002-11-07 at 15:24, Aaron Wolski wrote:
> Hi All,
>
>
> In a form I have checkboxes associated with order records. The
Hi All,
In a form I have checkboxes associated with order records. The
checkboxes are for deleting order records (should a client choose to do
so).
It looks like this:
Now.. when the process button is pressed the information is carried off
to the