[Zope] Python Scripts and HTML Forms

Kirk Strauser kirk at daycos.com
Thu Aug 17 15:05:20 EDT 2006


On Thursday 17 August 2006 1:57 pm, Muk Yan wrote:

> Name:<input type="text" name:"first_name">

Make that:

   <input type="text" name="first_name">

> DTML Method, process_this_form:
> <dtml-call "REQUEST.SESSION.set ('firstName', first_name)>
> <dtml-call "this_is_a_python_script()">
>
> and in the Python Script, this_is_a_python_script
> I use REQUEST.SESSION.get('firstName')

Make that:

  <dtml-call "this_is_a_python_script(request['first_name'])">
-- 
Kirk Strauser
The Day Companies


More information about the Zope mailing list