Paulo Roberto wrote:
> Hi, I have a html form with a lot of fields in a such order, but
> when retrieved by
>
> for each key in request.form
> response.write key & " - " & request.form(key) & "<BR>"
> next
>
> it lists them all out of order, how could I do a logic to get all
> of them on the same order that was put on html?
You can't do it in ASP. The HTML specification *does* require it for
building the form data set...
"The control names/values are listed in the order they appear in the
document."
http://www.w3.org/TR/html401/interac...ml#h-17.13.4.1
"The parts are sent to the processing agent in the same order the
corresponding controls appear in the document stream."
http://www.w3.org/TR/html401/interac...ml#h-17.13.4.2
....but the Request.Form collection is still a collection, and therefore
subject to this:
"Unlike arrays, collections expand and contract automatically as
items are retrieved or stored. The position of an item will
also move as the collection is modified."
http://msdn2.microsoft.com/en-us/library/ms525228.aspx
I presume the collection re-orders as it is being filled with your form
data.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.