[mod_python] How to know a form name

Eric Strand estrand at isomedia.com
Sat Dec 20 20:28:50 EST 2008


I don't recall seeing this sort of thing in the docs.  I've never had 
the need for multiple forms on the same page, so I'm not 100% certain.

A work around would be to include a hidden input with a different value 
for each form.

--ES


zayer wrote:
> Hello everybody, I've a page with to forms, each one with different
> names and I want hand it with same script. (I'm using FieldStorage util
> Class for mangle it).
> i.e.
> 
> <!-- one -->
> <form name="article" action="" method="post" > ... </form>
> <!-- two -->
> <form name="file" action="" method="post"> ... </form>
> 
> Does anybody know how can I get (in python of course) the name of the
> form that has been submitted?
> 
> Thanks you very much.
> _______________________________________________
> 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