<div class="gmail_quote">On Wed, Jan 6, 2010 at 3:09 PM, Carsten Haese <span dir="ltr"><<a href="mailto:carsten.haese@gmail.com">carsten.haese@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Victor Subervi wrote:<br>
> I have an automatically generated HTML form from which I need to extract<br>
> data to the script which this form calls (to which the information is<br>
> sent).<br>
<br>
</div>Ideally, the script that receives the submitted fields should know how<br>
the form was generated, so it knows what fields to expect. Failing that,<br>
 you should realize that getfirst() is not the only way to access the<br>
contents of a cgi.FieldStorage object.<br>
<br>
If you need to know the values of all fields whose names obey a certain<br>
pattern, I recommend you start with a list of all field names in the<br>
FieldStorage object and pick out the ones whose names obey that pattern.<br>
To get the list of field names, you should consider using the .keys()<br>
method of the FieldStorage object.<br></blockquote><div><br>Cool. Thanks!<br>beno<br>
</div></div>