[Zope-DB] need a suggestion regarding dtml method

Laura McCord Laura.McCord at doucet-austin.com
Fri Apr 30 11:27:20 EDT 2004


Hi,

I have a form that sends either an update or cancel variable to my
user_Update_html dtml method. The problem with the code is that it does
not do anything but show a blank grey screen if cancel was selected and
I want it to either tell the user that the update was cancelled or go
back to my index_html page. However, I tried revising the code including
a <dtml-else> or another <dtml-if> to check if the value was "cancel"
but haven't had much luck.

Any suggestions would be appreciated.

Thanks,
 Laura

The code looks like this:

<html>
<body bgcolor="#e7e7e7">
<font color="#0a4f72" size="4"> 

<dtml-if name="update">
<dtml-try>
 <dtml-call name="update_user_sql">
 The user, <strong><dtml-var name="username">,</strong>
 was successfully update in the database.
 <dtml-except>
 Sorry, the user was not updated in the database.
 </dtml-try>
</dtml-if>

</font>
</body> 
</html>



More information about the Zope-DB mailing list