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

Ole Jacob Hagen waterthrill at yahoo.no
Fri Aug 6 13:40:33 EDT 2004


Hi, Manfred.

Thanks.

Is it sufficient to use req.read() ?

Ole

Manfred Stienstra wrote:

>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
>
>_______________________________________________
>Mod_python mailing list
>Mod_python at modpython.org
>http://mailman.modpython.org/mailman/listinfo/mod_python
>
>  
>



More information about the Mod_python mailing list