Another thing you can do, not sure if Im using it right, but the effect is good... <dtml-unless first_name> <dtml-raise type=ValidationError> <font face="Arial, Helvetica, sans-serif" size="-1" color="#000000"><b>You must specify a <font color="red">First Name</b></font>. </font> <dtml-var tableSeparate> <dtml-var SupportCallForm> </dtml-raise> </dtml-unless> I have a support call form that is filed and submitted, and after the button is pressed, a seperate validate method is called (can be in any document) which will stop the processing if something isnt there and will show a red error text at the top of the form that still contains the information.] Its nice becuase the info stays there and doesnt take you off to a blank screen with a few words. -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - Stephan Goeldi wrote:
I want to select from a select menu, 3 amounts: 1000, 5000 or 10000. After this, the form action method should reply:
- "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 10000 was selected
Now my form method looks like this:
<form action="form_action"> How many money? <select name="money"> <option>1000 <option>5000 <option>10000 </select> <input type="submit" value="checkit"> </form>
and the form_action method is this:
<dtml-in money> <dtml-if "1000"> This is not much! </dtml-if> <dtml-if "5000"> This is ok! </dtml-if> <dtml-if "10000"> This is very much! </dtml-if> </dtml-in>
I am sure that there is an error in my thinking of these tags.
TIA -goe-
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at http://profiles.msn.com.
_______________________________________________ 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 )