[Zope-DB] Help with ZSQL results How-to

Hannu Krosing hannu@tm.ee
Sun, 11 Nov 2001 02:48:23 +0500


guido tobar wrote:
> 
> I red  "how-to ZSQL results" is excelent but in the
> last DTML method appear:
> <dtml-var standar_html_header>
> <dtml-if expr="isContact('vedovelli')">
>    if true..
> <dtml-else>
>    if false...
> </dtml-if>
> <dtml-var standard_html_footer>
> 
> The author put 'vedovelli' like a static parameter in
> script of python called isContact, however I would
> like to know How Do  I put a dynamic parameter?, for
> example in web page I put Stefano, in other moment
> vedovelli, John, Steve,  but like a form.
> Something like this:
> <dtml-var standar_html_header>
> <input name="name_to_search: string">

the right syntax is

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


> <dtml-if expr="isContact(name_to_search)">

This _is_ exactly how you should use it ;)

--------
Hannu