[Zope] REQUST.form
Rik Hoekstra
rik.hoekstra@inghist.nl
Tue, 07 Mar 2000 10:31:17 +0100
Dyon Balding wrote:
>
> from dtml using REQUEST.form.items(), the order of the form variables
> is jumbled. is there any way to get the original order that they
> appeared in the <form>? assuming the browser sends them in the same
> order that they appear in the <form>?
Not if you do not name them explicitly. The REQUEST.form.items() is a
python dictionary. Keys of a dictionary have no fixed order. You could
sort them if you wanted to, but that would be a computer order, not the
original order in which they appeared.
Rik