[mod_python] mod_pythons answer to PHP's _POST['variable']?

Manfred Stienstra manfred.stienstra at dwerg.net
Fri Aug 6 13:19:36 EDT 2004


On Fri, 2004-08-06 at 11:14, Ole Jacob Hagen wrote:
> Hi.
> 
> I am making server pages, and solved my last questions.
> 
> I forgot to name the frames...;-)
> 
> Well, now I would like to receive the _POST['variable'] as I know from 
> PHP, but how can I do the same in PSP?
> 
> I would like to have a short example of usage.
> 
> What is the analogy of _POST['php_self'] in mod_python/psp?

Take a look at the FieldStorage class in the modpython documentation.

http://www.modpython.org/live/current/doc-html/pyapi-util-fstor.html

Also, for more understanding read rfc 2616. It could look a little
daunting, but it's worth the read.

http://www.w3.org/Protocols/rfc2616/rfc2616.html

Manfred



More information about the Mod_python mailing list