[mod_python] query_vars and form_vars

mod_python user python at theorb.net
Mon Jul 5 13:49:50 EDT 2004

Hi all,

I'm new to python and consequently mod_python but have discovered the 
servlet" package, and actually have a small templated webapp up and 
running.  Extremely powerful language.

I would like to be able to retrieve both _form_ and _query_ variables, 
even if they share the same name. e.g.

   <form method='post' action='/?name=NAME_ONE'>
     <input type='hidden' name='name' value='NAME_TWO' />
     <input type='submit' />

It seems that when both a GET and POST variable share the same name that 
the GET (query) variable always wins.

Does anybody know how this might be accomplished?

Mike Wright

More information about the Mod_python mailing list