[Zope] How to require an @ symbol in email form field??

Dieter Maurer dieter@handshake.de
Tue, 18 Jul 2000 01:31:16 +0200 (CEST)


Stacy Formby writes:
 > Is there a way to require at least an "@" sign in the email field? The
 > powers that be think this would be useful.
You can do it on the client with javascript or on the server
with

	<dtml-if "'@' in mailfield">
	  <!-- okay code -->
	<dtml-else>
	  <!-- alert -->
	</dtml-if>


Dieter