CGI parameters
Garrett G. Hodgson
garry at sage.att.com
Fri Jan 7 13:46:09 EST 2000
sp00fD wrote:
>
> How do you query CGI parameters from radio buttons, urls, etc in
> python? In perl it would look something like
>
> $query = new CGI;
> $foo = $query->param("foo");
query = cgi.FieldStorage()
foo = query["foo"].value
you'll probably want to wrap the latter statement in a
try/except pair or precede it with a test for query.has_key( 'foo' )
--
Garry Hodgson Every night
garry at sage.att.com a child is born
Software Innovation Services is a Holy Night.
AT&T Labs - Sophia Lyon Fahs
More information about the Python-list
mailing list