|
Subject:
|
Checkbox
|
|
Posted By:
|
johnjohn
|
Post Date:
|
12/6/2004 11:35:38 AM
|
Hi everybody
I would like to know: if I have a group of checkbox and want to know which one are check, how can I do that without the get method beacause I don't the user to see all that? In fact what I want to do is exacltly like hotmail work, if you check a group of your mail and decide to delete them it work and you don't see anything special in the URL.
How they do that?
Thank you very much Johnjohn
|
|
Reply By:
|
ChrisScott
|
Reply Date:
|
12/6/2004 11:41:52 AM
|
Hi Johnjohn,
Try using method="post" in your form.
Then use Request.Form instead of Request.QueryString (if you are just using Request, asp checks the Request.QueryString collection for a value before Request.Form)
HTH,
Chris
|
|
Reply By:
|
mat41
|
Reply Date:
|
12/6/2004 5:03:57 PM
|
BTW: If you have a value in each (EG the item's id) input type=checkbox form tag, a commer delimited string will be sent in the post value (for each ticked checkbox - providing the checkboxes are all named the same)
Handy for a SELECT WHERE ID IN [your string] type query rather than checking for 'on' values.
Wind is your friend Matt
|