Sup all,
I have a asp page that shows a list of a players game items.
On this page I have a delete button for each item he has.
I would like to have a checkbox next to each item instead.
Then have one button at the bottom that would delete all the items with a check.
Server software I am useing I have to delete one item at a time.
I need two things:
1.) I need to be able to tell which checkbox is selected.
2.) Then loop through each item till its done.
Here is my delete function I use know for each items delete button:
if request.form("act") = "delete" then itemId = request.Form("itemId") itemAmount = request.Form("itemcount") tmp = DelItem(cid, stored, itemId, itemcount) if not tmp then if request.form("location") = "user" then table = "player_items" else table = "player_warehouse" end if strsql = "DELETE FROM " & table & " WHERE item_id=" & itemId gamedb1_conn.execute(strsql) end if response.Redirect("playeyitems.asp") end if
|
I have not worked with having checkboxes and loops.

Any help would be appreciated.
Thanks,
Dubie