Get parameters from URL using CGI

abcd codecraig at gmail.com
Sat Feb 18 12:51:27 EST 2006


i want to create a CGI script which simply prints out values given via
the URL (such as when a GET is performed).

So if I have a script named, foo.cgi ....and I access it by going to:

http://www.somesite.com/cgi-bin/foo.cgi?name=john&age=90

I want foo.cgi to print out:
name: john
age: 90


how do i get the values from the URL like that?

thanks




More information about the Python-list mailing list