[9911] in www-talk@info.cern.ch
Re: HTTP protocol regarding form elements order
daemon@ATHENA.MIT.EDU (Gregory J. Woodhouse)
Fri Apr 5 14:01:21 1996
Date: Fri, 5 Apr 1996 10:44:17 -0800 (PST)
From: "Gregory J. Woodhouse" <gjw@wnetc.com>
To: Niranjan Ramakrishnan <niranjan@eecs.umich.edu>
Cc: www-talk@w3.org
In-Reply-To: <199604051726.MAA07221@wits-end.eecs.umich.edu>
Resent-From: www-talk@w3.org
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/