using python with HTML and parameters

Peter Maas peter.maas at mplusr.de
Wed Jun 30 09:35:53 EDT 2004


David Stockwell schrieb:

> In java/jsp I can pass parameters to my python script on a webpage by 
> doing something like this:
> 
> http://somewhere.org/mypage.jsp?parm1=something&parm2=another
> 
> How do I do that with python?

If your Python Script uses CGI it's

http://somewhere.org/mypage.py?parm1=something&parm2=another

:) You have to parse the query string with cgi.parse().

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
       eMail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------



More information about the Python-list mailing list