Re: Doubt regarding form handling in mod_python

Graham Dumpleton <[email protected]> Fri, 28 Aug 2009 09:01:53 +1000
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
If this is mod_python form object, then it is a FieldStorage instance.
See the documentation:

  http://www.modpython.org/live/current/doc-html/pyapi-util.html

Graham

2009/8/28 Azhaguselvan <[email protected]>:
> Hi,
>
>      We have mod_python+cheetah setup for our web application. I have a form
> in cheetah template which on submit calls a python method. I want to do form
> validation in that method. The doubt i have is if I use
>
> |"myform=req.form" |
>
> what will my myform be? A dictionary of all form parameters as keys and
> values as values? or something else?
>
> If its going to be dictionary, and assume if i have radio button group named
> as radio. How do i access the different members of that radio button group?
> As myform['radio'][0]? Or am i missing something?
>
> Regards,
> tamizhgeek
>
>
> _______________________________________________
> Mod_python mailing list
> [email protected]
> http://mailman.modpython.org/mailman/listinfo/mod_python
>