|
-
Mar 24th, 2002, 03:51 PM
#1
Thread Starter
Fanatic Member
a different deleting question...
hi,
i am doing a delete records page.
the first page (asp) pulls all the users out of a database(access).
they are formated in html w/ a checkbox next to them.
the user selects all the checkbox's and hits the 'delete' button(a form button)
this calls the next page which will delete the users that were selected on page one.
sounds simple enough eh?
my problem is, i don't know how to 'grab' the users on page two.
because i never know how many users are on page one, i have to give the check box's a name like
name="chkBox" & i
where i is variable that gets increased everytime the loop is run
i thought i could have a hidden field that is associated with the checkbox and the user.
so it might look like this
<input type="hidden" value="<%=user%>" name="hidBox" & i>
(or something, that syntax might be allittle off but the idea is, it would have the same name as the check box and the value would be the same as the user)
on page two i was trying to do something like this
dim user
user = request("hidBox")
only i have to add the number to this so i can grab all of them
but i only want the ones that have been selected.
if that explanation doesn't make sense, please tell me and i will try and re-explain it.
basicly, i want to do what hotmail does kinda, where you can select a bunch of records using checkbox's and then delete those records from the database.
thanks for any suggestions!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|