Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Element Order in Request.Form Collection

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,545
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Element Order in Request.Form Collection
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Element Order in Request.Form Collection - 12/31/2001 9:23:48 AM   
  keith.robinson@talk21.com

 

Posts: 1
Score: 0
Joined: 12/31/2001
From:
Status: offline
I have an html form which contains a number of hidden and checkckbox fields as follows:-

<form name='theform' method='post' action='assetmove4a.asp' onSubmit='return validateForm(this)'>
<input type='hidden' name='000063' value='Madison 2'>
<input type='hidden' name='000063' value='171'>
<input type='checkbox' name='000063'>
<input type='hidden' name='001330' value='Madison 2'>
<input type='hidden' name='001330' value='171'>
<input type='checkbox' name='001330'>
<input type='hidden' name='001525' value='Madison 2'>
<input type='hidden' name='001525' value='171'>
<input type='checkbox' name='001525'>
<input type='hidden' name='001526' value='Madison 2'>
<input type='hidden' name='001526' value='171'>
<input type='checkbox' name='001526'>
<input type='hidden' name='000554' value='Madison 2'>
<input type='hidden' name='000554' value='172'>
<input type='checkbox' name='000554'>
<input type='hidden' name='000752' value='Madison 2'>
<input type='hidden' name='000752' value='172'>
<input type='checkbox' name='000752'>
</form>

When the form is posted I use the following FOR EACH statement to read the form elements received:-


Dim FormElement
For Each FormElement In Request.Form
Response.Write(FormElement)
Next

The details output are as follows:-

000063
001525
001330
000752
001526
000554

Whereas I was expecting:-

000063
001330
001525
001526
000554
000752

i.e. the same order as the input fields on the form.

Does anyone know why this happens??
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Element Order in Request.Form Collection Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts