[thelist] HTML <form maxLength=?/>

Rob Smith rob.smith at THERMON.com
Mon Sep 16 14:48:13 CDT 2002


Interesting... That's pretty neat. I'll figure the rest out.

Thanks to all who've helped me on this.

Rob


Yeup it's really easy actually.  I see you have your checkboxes (logically)
grouped by state.  So, to get all the selected counties in say, IL, you'd do
this:

dim strILCounties
strILCounties = request.form("IL")

What you will get is a comma/space separated string of values, all the
checked ones to be exact.  Response.write it and it should look like this:

county1, county2, county3

Now you can turn that into an array with the split() function:

dim aryILCounties
aryILCounties = split(strILCounties, ", ")

Now you can loop through said array and do whatever you need to do.

Does that help?  If you need more info on array looping, etc. lemme know.

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

> Chris,
>
> I changed it to POST and the form went through. but back to square 1. Like
> Jay said. How, now do I do an array of checkboxes ... and detect their
> value. For all I know, you have to do request.form("Something") to get the
> value. I don't want to program all those checks and balances. So...
>
> Ideas?
>
> Rob

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list