Re: HTTP protocol regarding form elements order

On Fri, 5 Apr 1996, Niranjan Ramakrishnan wrote:

No. The form elements can be returned in any order. For example,

alpha=one&beta=two

is treated as equivalent to

beta=two&alpha=one

> Hi,
> 
> Sorry to disturb you guys but I'm pretty concerned about the HTTP specs
> regarding the order in which form input is returned to a cgi program. Is
> it *necessary* that the form elements should always be returned in the
> same order as they were present in the original HTML document? I need this
> info desperately as it would dictate the parsing methodology I use when I
> process input from a POST query.
> 
> For eg if I have several input text fields say 
> 
> <input type=text name=a>
> <input type=text name=a>
> <input type=text name=a>
> 
> and the user enters for each in order b c and d, will HTTP require that
> the values returned to me would be of the form :
> 
> a=b
> a=c
> a=d
> 
> in that order?
> 
> Thanks for putting up with this query? But I need the info pretty badly...
> 
> Any help would be deeply appreciated.
> 
> Sincerely,
> 
> Niranjan Ramakrishnan
> Grad Student,
> University of Michigan, Ann Arbor
> 

---
Gregory Woodhouse     gjw@wnetc.com
home page:            http://www.wnetc.com/
resource page:        http://www.wnetc.com/resource/

Received on Friday, 5 April 1996 13:48:23 UTC