[mod_python] cgi handler

Ondra Kupka ondra.cap at seznam.cz
Sun Apr 8 16:28:17 EDT 2007


Philippe Schottey wrote:
> Hello,
>
> This is the first time i'm using python and mod_python.
> The hosting company only wants to use the cgi_handler.
>
> I have some problems retrieving POST and GET parameters.
> I've read somewhere that this should do the trick:
>
> import cgi
> form = cgi.FieldStorage()
> value = form[key]
>
> When I'm trying this, the form object is allways empty.
> The form code:
> <form name="main" action="test.py" method="POST">
> <input type="hidden" name="action" id="action" value="good"/>
>             <input type="submit"/>
> </form>
>
> I can't seem to retrieve the action parameter.
> Help.
>
> Thanks,
>
> Philippe Schottey
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>   
Hi,
I'm just beginner, but I think you should use form[key].value


More information about the Mod_python mailing list