[mod_python] how to access url parameters?

Kevin White jedirunner at gmail.com
Mon Dec 13 10:51:50 EST 2004


I'm new to mod_python (and python itself, to be honest).  But I've
programmed in many other languages (java, c#, VB.Net, PHP, ASP, etc.).

What I'm trying to figure out is how to access GET (querystring) and
POST (form) parameters from a PSP page.

So, given the following URL, 

How would I access param1 and param2 in my PSP page?

Also, how do I do the same thing in a form?  For example, if my form has:
<form method="POST" action="test2.psp">
<input type="text" name="param" />
<input type="text" name="param2" />
<input type="submit" />

How would I access param and param2 in that case?

Thank you very much for your help with this,  

Kevin White
jedirunner at gmail.com

More information about the Mod_python mailing list