I am new to Zope; since our webmaster left I'm trying to make small
changes to the website. We have a standard registration form that
collects information from users (first name, last name, email, company
name, etc.) All of the fields are required, except address 2, address3.
Great. fine. If the user doesn't fill out a field, they get an alert.
But they can fill each field out with gibberish--as long as there is a
character in the input, we accept it.
Is there a way to require at least an "@" sign in the email field? The
powers that be think this would be useful.
Here's the form processing code as it stands today. Any help is
<!-- Check whether any fields are missing. --> <dtml-in required>
The length of the following expr is due to the fact that some types of
(e.g. text) always create a var, while others (e.g. radio) don't.
<dtml-unless expr="REQUEST.form.has_key(_['sequence-key']) and
<dtml-call request.set(missing_fields1)"> </dtml-unless> </dtml-in>
<!-- If fields are missing, inform the user. -->
<dtml-if request.has_key(missing_fields')"> The following input fields
and have not been filled out: <!-- List missing fields. -->
<dtml-in required> <dtml-unless
Please click on your browser's "Back" button to update your information,
or <a href="registration.html">click
here</a> to start over. <dtml-else>
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -