24 Sep
2004
24 Sep
'04
9:31 p.m.
Hamzat Kamal wrote:
<dtml-if "email and '@' in email">
try:
<dtml-if "email and ('@' in email)">
<dtml-if "email == ''"> E-mail address</p> </dtml-if>
Yuk, this doesn't match your test above...
I can't remember the original question, but if it was something like: "I want to check that the user has entered an email address (via a form) and that the email address contains the '@' character" then this should work: <dtml-if "REQUEST.has_key('email') and ('@' in REQUEST.get('email', ''))"> Email OK <dtml-else> Email Not Good </dtml-if> Jonathan