Thread: Asp Code help
View Single Post
Old 03-21-2003, 07:31 PM   #5 (permalink)
berklee
Registered User
 
Join Date: Mar 2003
Posts: 18
berklee is on a distinguished road
Ok, I'm going to admit, I'm not even double-checking this for accuracy.... so your mileage may vary...

if you have a bunch of check boxes all given the same name, with different values...

<input type="checkbox" name="mycheckbox" value="1">
<input type="checkbox" name="mycheckbox" value="2">
<input type="checkbox" name="mycheckbox" value="3">

...and a bunch of them get checked, the form item for mycheckbox will come back as a comma-delimited string. From there, you can use VBScript's split() function to chop it up and perform a for-each on it.

Hope that helps.
berklee is offline   Reply With Quote