[thelist] sorting an ASP form dump

aardvark roselli at earthlink.net
Tue Apr 23 15:50:01 CDT 2002


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




More information about the thelist mailing list