Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why are Forms Objects Submitted in Random Order?

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi,

I have a Form which contains several fields.....when the Form is submitted the order in which they are passed in the Request.Form collection seems to be totally random. Why is this?

I use the following code to process....

For Each Item in Request.Form
Response.write blah blah
Loop

Thanks [sig][/sig]
 
Since the form doesnt expect to be presented again, it will be given in the order that they are processed, which in most cases seems randome, also it depends on how you are using the form, the most typical use is

Request.Form("VariableName") when grabing value
and if an item has an array (such as a list of stuff to submit)

for each itm in Request.Form("TheArray")
...

but other than that, it would seem to be a "as is" thing, which has no reasons to be in order.

sorry I couldnt help you beyound that. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top