[thelist] sorting an ASP form dump

Eric Engelmann eric.engelmann at geonetric.com
Tue Apr 23 16:47:07 CDT 2002


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of aardvark
Sent: Tuesday, April 23, 2002 3:49 PM
To: thelist at lists.evolt.org
Subject: [thelist] sorting an ASP form dump


let's say i use the following code to walk through all form fields
submitted to a script (with moderate formatting built in):

	Dim sItem
	For Each sItem In Request.Form
		sItemValue = Replace(Trim(Request.Form(sItem)),"<","&lt;")
		sItemValue = Replace(Trim(sItemValue),">","&gt;")
		Response.Write Replace(sItem,"_"," ")
		Response.Write ":<br>" & sItemValue & "<br><br>" & vbcrlf
	Next

now, let's say those form field names are each pre-pended with a
number corresponding to the 'section' they are on...

what's a good way to sort a form dump like this alphabetically
and/or numerically?

key is that the client can add form fields and have the receiving
script still catch and sort...

--
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