RE: [phplib] OT: Deleting Queries from Checkbox From: Brian Popp (bpopp <email protected>)
Date: 05/16/01

I'm not sure if this is the best way, but here's what I did. When I built
the checkboxes, I added a hidden field for each one that was set to "on".
Then I compared the list of hidden field values to the corresponding
checkbox values and deleted any differences.

So it would be like:

<INPUT TYPE=HIDDEN NAME=checkboxhf_1 value="ON">
<INPUT TYPE=CHECKBOX NAME=checkbox_1 VALUE="ON">

I don't know where my code is, but if you need more information I can
probably dig some up or rewrite you a little. Hope this helps.

bpopp - bpopp.net

-----Original Message-----
From: HurricaneIndy <email protected> [mailto:HurricaneIndy <email protected>]
Sent: Wednesday, May 16, 2001 10:47 AM
To: phplib <email protected>
Subject: [phplib] OT: Deleting Queries from Checkbox

Hey all,
I have query that lists all the rows in a table. I would like to be able to
delete any of them using a checkbox. I added the checkbox tags in a while
loop along with the rest of the queries so it prints out nicely. Of course I
have a statement like:

mysql_query("DELETE FROM test_table WHERE ????")

This is the part I am stuck at...How exactly do I write this part of the
code not knowing how many checkboxes will be selected to delete?

Thanks in advance guys..

Indy

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>