Get parameters from the URL
Sohrab Pawar
sohrab.pawar at amsoft.net
Thu Aug 21 00:34:35 EDT 2008
Hi all,
I'm a python noob so don't be mean :)
I have a URL like http://mySite.net?userID=398&age=28
I'm trying to create a new python script that is called when a user
click a button "Redirect". When a user clicks the "Redirect" button, I
want to send the user to either of the 2 pages, depending on the age of
the user (sent as a parameter using the URL).
What is the best way to
1. Read the URL and get the parameters (age=28 in this case)
2. Redirect the the user accordingly
I have done this kind of thing in a jsp/servlet environment but I have
no idea how to proceed in the Python world.
Any advice/example would help.
Regards,
Sohrab
More information about the Python-list
mailing list