[ZPT] FORMs and processing

Tony McDonald tony.mcdonald@ncl.ac.uk
Tue, 26 Jun 2001 14:42:59 +0100


Hi all,
Hopefully a simple question:

What's the received wisdom on using FORMs and PageTemplates? After a
nightmare project where HTML coders were mangling DTML code I've decided to
look at ZPT in a lot more detail...

We have a lot of things like (all in the same DTML document)

<dtml-in do_an_sql_query_that_only_returns_one_row>
<dtml-if submit>
    do stuff with the data.
</dtml-if>

<form method="post">
<input type="text" name="surname" value="<dtml-var surname missing>">
...
<input type="submit" name="submit" value="DoIt">
</form>
</dtml-in>

In general we know what variables we're getting (so we don't need to iterate
over form) so hopefully that simplifies things...

Any thoughts?
Tone
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope