Newbie question: FORM processing in Zope.

Janko Hauser jhauser at ifm.uni-kiel.de
Wed Aug 23 07:07:55 EDT 2000


It's simple there :-)

place the following code as a DTML-document with name "form_doc" in some folder.

<dtml-var standard_html_header>
<h2>A small form example</h2>
<p>
Ask a simple question here and call a DTML method which shows the answer.
</p>

<form action="show_res">
   <input name="tval" type="text" maxlength="20" width="20">
   <input type="submit" value="send">
</form>

<dtml-var standard_html_footer>

And the following in a DTML-method with name show_res.

<dtml-var standard_html_header>
<h2>Shows the result from the form_doc</h2>
<p>
The value of the form variable <tt>tval</tt> is <br>
<dtml-var tval>
</p>
<dtml-var standard_html_footer>

So the form values become members of the namespace of the called
method. There is a huge amount of documentation in the howtos and the
guides at www.zope.org or zdp.zope.org

HTH,
__Janko
-- 
  Institut fuer Meereskunde             phone: 49-431-597 3989
  Dept. Theoretical Oceanography        fax  : 49-431-565876
  Duesternbrooker Weg 20                email: jhauser at ifm.uni-kiel.de
  24105 Kiel, Germany



More information about the Python-list mailing list