Re: [QF] Email & Compare

From: Date: Wed, 24 Dec 2003 08:06:37 +0000
Subject: Re: [QF] Email & Compare
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9812@lists.php.net to get a copy of this message
Hi! Helgi wrote:
I was trying to use this; $form->addRule(array('email', 'email1'), 'Dont Match', 'compare'); okey all worked when i was using foo@example.org but when i had FOO@example.org in both fields then i got "dont match" Same thing came when i did Foo@example.org in both fields. Aren't uppercase letters allowed in emails ? I've always thought so :/
Compare rule only compares two fields, it doesn't give a f*ck about what is in the fields. It does its comparison in a case-sensitive way, if you want case-insensitive comparison, write your own rule.

« previous php.pear.general (#9812) next »