Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: CGI form results to XML

by Anonymous Monk
on Feb 18, 2013 at 08:08 UTC ( #1019292=note: print w/replies, xml ) Need Help??

in reply to CGI form results to XML

I just wanted to say that it is not guaranteed (AFAIK) that the web browser sends the form fields in the same order as enumerated in the html, or that they even send all of them (when one is unset). That is, you probably can't match a name and a birth date together. You should give the text boxes different names, grouping by entry. HTML::FormFu, particularly HTML::FormFu::Element::Repeatable might help there. (It's a pretty difficult/boring job to do it manually.)

Replies are listed 'Best First'.
Re^2: CGI form results to XML
by Your Mother (Bishop) on Feb 19, 2013 at 04:45 UTC

    Iíll be damned, RFC 2388 seems to agree that itís not guaranteed, because itís left unspecified. Surprising. I do a lot of form introspection and simple CGI::Dump -> email kinds of stuff and I have never noticed any browser sending the fields back in any order other than that of the fields in the page.

Re^2: CGI form results to XML
by Anonymous Monk on Feb 19, 2013 at 02:03 UTC

    Thanks for the info

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019292]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-05-22 06:55 GMT
Find Nodes?
    Voting Booth?