[thelist] stuck in a loop (classic asp/mssql)

Joshua Olson joshua at waetech.com
Mon Aug 22 10:58:31 CDT 2005


> -----Original Message-----
> From: Brian Cummiskey
> Sent: Monday, August 22, 2005 11:43 AM
> 
> Matt Warden wrote:
> 
> > It has been a *long* time since I've done any serious ASP 
> work, but I
> > am fairly certain that you can do:
> > 
> > foo = Request.Form('foo')
> 
> yes, this works, but it leaves me with a foo variable that looks like:
> 
> 0001810160665071,MRF70TO73,MBC2, 0001850170665070,MRF70TO73,MBC2, 
> 000717033,LT_5077,MBC2, 000821090,OPT5171,MBC2

Brian,

This is no problem.  Consider changing the delimiter within the values of
the checkboxes to something else, such as a ;.  Then, the ASP code would
look something like this:

arr = Split(Request.Form("foo"), ",")
For i = LBound(arr) to UBound(arr)
  arr2 = Split(arr(i), ";")
  ' now arr2 contains an array of length 3 containing the values:
  ' arr2(0) = rowid
  ' arr2(1) = jobname
  ' arr2(2) = server
Next

<><><><><><><><><><>
Joshua L. Olson
WAE Tech Inc.
http://www.waetech.com/
Phone: 706.210.0168 
Fax: 413.812.4864

Monitor bandwidth usage on IIS6 in real-time:
http://www.waetech.com/services/iisbm/




More information about the thelist mailing list