[Zope] Validate fields?
Andreas Kostyrka
andreas@mtg.co.at
Thu, 26 Aug 1999 12:27:46 +0200 (CEST)
On Thu, 26 Aug 1999, Juergen Specht wrote:
> Hi there,
>
> how can i validate input fields in Zope?
> If somebody fills something in a input field and i expect
> an email-adress, how can i check the right syntax?
Well, try this:
<dtml-if "'@' in field">
GOOD Email address?
</dtml-if>
> I know how to do it in perl with regular expressions but in
Well, somebody posted a patch or so to add the regular expression module
functionality to the DTML namespace ;)
Andreas
--
Andreas Kostyrka | andreas@mtg.co.at
phone: +43/1/7070750 | phone: +43/676/4091256
MTG Handelsges.m.b.H. | fax: +43/1/7065299
Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA