[thelist] Changing Check Box values with JavaScript

Anthony Baratta Anthony at Baratta.com
Fri May 25 18:18:23 CDT 2001


How about another approach?

If you don't have too many check boxes, why not stuff them in a deliminate 
string to give ASP a list to compare against?

e.g.

On Form

[input type="hidden" name="CheckBoxList"
value="cb_one|cb_two|cb_three|cb_four"]

ASP

arrayCheckBoxList = split(Trim(Request.Form("CheckBoxList")),"|",-1,1)
for each fld in arrayCheckBoxList
	if (Trim(Request.Form(fld)) = "") then
		'' Not checked!!
	else
		'' checked!!
	end if
next
---
Anthony Baratta
President
Keyboard Jockeys





More information about the thelist mailing list