Philippe Schottey
phillscot at mac.com
Sun Apr 8 16:32:27 EDT 2007
That does not change anything. You see even this gives false: form.has_key(key) I think I badly create the FieldStorage()... On 08 Apr 2007, at 22:28, Ondra Kupka wrote: > 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
|