Re: CGI handler: Retrieving POST and GET at the same time

2007-03-10 Thread Samuel
On Mar 10, 8:45 pm, "Pierre Quentel" <[EMAIL PROTECTED]> wrote: > To get the key-value dictionary : > > cgi.parse_qs(os.environ["QUERY_STRING"]) Thanks a lot, it works! -Samuel -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI handler: Retrieving POST and GET at the same time

2007-03-10 Thread Pierre Quentel
On 10 mar, 19:52, "Samuel" <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following form: > > > > > > and would like to retrieve both fields, "one" and "two". However, the > following does not work: > > form_data = cgi.FieldStorage() > for key in form_data: > print key + ":", form_data[key]