CGI question
Erik Max Francis
max at alcyone.com
Tue Sep 17 14:31:34 EDT 2002
"John D. Boy" wrote:
> Now, my problem is to find out what follows behind the question mark
> in
> my CGI script. Unless the key has a value
> (http://my.domain.name/?key=value), it is not in the cgi.FieldStorage
> dictionary. Is it simply impossible, or am I not using the right
> function calls?
Try os.environ['QUERY_STRING'].
Note that this region is reserved for form submissions via GET, so if
you have any intention of having the user interact, then this isn't a
great choice of places to put it.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Be able to be alone. Lose not the advantage of solitude.
\__/ Sir Thomas Browne
Computer science / http://www.alcyone.com/max/reference/compsci/
A computer science reference.
More information about the Python-list
mailing list