Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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.)


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

    Thanks for the info

Re^2: CGI form results to XML
by Your Mother (Canon) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2014-07-23 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (148 votes), past polls