AW: AW: [Phplib-users] OOHForms / valid_regex
Brought to you by:
nhruby,
richardarcher
From: Uli L. <web...@li...> - 2002-09-30 13:17:38
|
Hello Tarique! > > Sorry, I did not look at your regex properly > > You must use ^...$ if you want the regex to match the whole entry (which I > almost always do ;) OK, I changed it to: "valid_regex"=>"^[a-z0-9_-]+(\.[a-z0-9_-]+) *@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+ ([a-z]{2,4}|museum)$", But it still tell's me "no valid E-Mail Adresse" if I leave the field blank... My I ask you again for an other Idea??? Uli > > Hi Tarique! > > > > > Just dont use min_length attribute in your element. > > > > I don't use it: > > > > $f->add_element(array("type"=>"text", > > "name"=>"EMail", > > "size"=>$form_size1, > > "valid_regex"=>"[a-z0-9_-]+(\.[a-z0-9_-]+) > > *@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+ > > ([a-z]{2,4}|museum)", > > "valid_e"=>"Die E-Mail-Adresse ist unvollständig...", > > "icase"=>"1", > > "maxlength"=>"100")); > > > > > BY default if the value is blank then OOHform will not validate it > > > > But it does... > > > > Any other Idea? > > > > Uli > > > > > > -- > ============================================================= > PHP Applications for E-Biz: http://www.sanisoft.com > > Indian PHP User Group: http://groups.yahoo.com/group/in-phpug > ============================================================= > > > > > > ------------------------------------------------------- > 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 |