Re: [Phplib-users] OOHForms / valid_regex
Brought to you by:
nhruby,
richardarcher
From: Dr T. S. <ta...@sa...> - 2002-09-30 10:55:57
|
On Mon, 30 Sep 2002, Uli Linn wrote: Just dont use min_length attribute in your element. BY default if the value is blank then OOHform will not validate it HTH Tarique > Good morning List! >=20 > Im just trying to get some forms with OOHForms working (I hope this is no= t > off-topic). There is one Problem left: >=20 > I have a form, where I ask for adress, phone, e-mail an so on. >=20 > E-Mail is not required, but if the user fills out the E-Mail field, i wan= t > to validate the e-mail. I do the validation with the regular expression: >=20 > [a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|mu= seu > m) >=20 > The validation is OK. But what do I have to do, so that an empty E-Mail > field is also accepted? >=20 > Thank you all for your help! >=20 > Uli >=20 > ------------------------------------------------------ > Uli Linn LINN Internet Marketing > Fon: +49-6831-976789 Waldstra=DFe 19 > Fax: +49-6831-976788 D-66763 Dillingen > Mail: U....@Li... URL: http://www.LinnWeb.de >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users >=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |