[Phplib-users] OOHForms / valid_regex
Brought to you by:
nhruby,
richardarcher
|
From: Uli L. <U....@Li...> - 2002-09-30 08:09:55
|
Good morning List!
Im just trying to get some forms with OOHForms working (I hope this is not
off-topic). There is one Problem left:
I have a form, where I ask for adress, phone, e-mail an so on.
E-Mail is not required, but if the user fills out the E-Mail field, i want
to validate the e-mail. I do the validation with the regular expression:
[a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|museu
m)
The validation is OK. But what do I have to do, so that an empty E-Mail
field is also accepted?
Thank you all for your help!
Uli
------------------------------------------------------
Uli Linn LINN Internet Marketing
Fon: +49-6831-976789 Waldstraße 19
Fax: +49-6831-976788 D-66763 Dillingen
Mail: U....@Li... URL: http://www.LinnWeb.de
|