[Zope] dtml-if question
Wolfram Kerber
wk@gallileus.de
Mon, 3 Dec 2001 06:48:52 +0100
<dtml-if <dtml-var
important_column_that_may_exist_also_as_a_passed_variable> >
should read:
<dtml-if important_column_that_may_exist_also_as_a_passed_variable>
and don't forget to close the dtml-in loop with </dtml-in>
Wolfram
----- Original Message -----
From: "Kyroraz" <kyroraz@cableaz.com>
To: <zope@zope.org>
Sent: Monday, December 03, 2001 5:53 AM
Subject: [Zope] dtml-if question
> Hello,
>
> I am looking to search a SQL database for variables that may have been
> passed by a webform. Basically, when a user submits a userform, there
> are checkboxes that can or cannot be checked, and I would like to check
> the results back for the existance of these variables against the SQL
> database. An example would be...
>
> <dtml-in sql_method_that_returns_all_values>
> <dtml-if <dtml-var
> important_column_that_may_exist_also_as_a_passed_variable> >
> Yes, this was passed.
> <dtml-else>
> No, it wasn't passed
> </dtml-if>
>
> This is the logic that I am seeking, but I get a syntax error every time
> I try this. Does anyone out there have any suggestions?
>
> Jason
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )