On Tue, 21 May 2002, Denis L. Menezes wrote:
> I use the following code, but it does not work. Is there something wrong?
>
> If
> (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a
> -z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
> $email_address))
One problem (syn
address))
){
Print ("Sorry, the email address seems to be invalid.");
exit;
}
Please help.
Denis
- Original Message -
From: "Steve Buehler" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]&
Thanks to all who helped out with the eregi(mail)
stuff. I got my problem solved, and on top of that,
there were some bugs that I found in the code. Thanks
again to everyone.
__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yah
On Fri, 10 May 2002, Kevin Stone wrote:
> As we all know ARPA is thet university network, funded by the government
> to build an information infrastructure that eventually became the
> internet we have today. But the standards for text messaging within the
> ARPA net have been added to over the y
This is what I have used.
Here is an excellent article on Regular Expressions.
Learning to Use Regular Expressions by Example
http://www.phpbuilder.com/columns/dario19990616.php3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e address is
sendable, in which case the string format is irrelevant.
-Kevin
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>
Cc: "PHP-general" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 200
To tell you the truth, I can't read it.
Steve
At 01:32 PM 5/10/2002, Miguel Cruz wrote:
>On Fri, 10 May 2002, Steve Buehler wrote:
> >
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
>
>
>If I'm reading it
>[EMAIL PROTECTED]
>
>
>- Original Message -----
>From: "Analysis & Solutions" <[EMAIL PROTECTED]>
>To: "PHP List" <[EMAIL PROTECTED]>
>Sent: Friday, May 10, 2002 10:59 AM
>Subject: Re: [PHP] eregi(mail)
>
>
> > Hi L
Folks:
On Fri, May 10, 2002 at 01:27:45PM -0500, Steve Buehler wrote:
>
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
> $subarray)){
Those characters don't conform to the R
On Fri, 10 May 2002, Steve Buehler wrote:
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
>
If I'm reading it correctly, this will let invalid addresses through. The
domain component (after the @ sign) can only
On Fri, 10 May 2002, Kevin Stone wrote:
> I had always been suspicious about email validators so I did a big long
> search on Google about standard address formats. It turns out that aside
> from the @ symbol emails have no standard format whatsoever. So ereg('@',
> $email) is really the only fu
function check_input($array){
global $HTTP_REFERER;
$valid = 1;
if(gettype($array)=="array") {
while (list($index, $subarray) = each($array) ) {
if(ereg("required_", $index) && (($subarray == "")
|| ($subarray == " "))) {
pected. I hope it
was useful in some tiny miniscule sort of way. :)
--
Kevin Stone
[EMAIL PROTECTED]
- Original Message -
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 10:59 AM
Subject: Re
On Fri, 10 May 2002, Liam Gibbs wrote:
> Does anyone have a decent eregi statement for
> validating e-mail addresses? I've tried the ones on
> the site, but there seems to be small bugs with each
> of them. They tell me that [EMAIL PROTECTED] is an
> invalid e-mail address.
Well, it currently is
Hi Liam:
On Fri, May 10, 2002 at 09:48:58AM -0700, Liam Gibbs wrote:
> Does anyone have a decent eregi statement for
> validating e-mail addresses?
eregi('^[a-z0-9_.=+-]+@([a-z0-9-]+\.)+([a-z]{2,6})$', $Email);
Enjoy,
--Dan
--
PHP classes that make web design easier
SQ
Does anyone have a decent eregi statement for
validating e-mail addresses? I've tried the ones on
the site, but there seems to be small bugs with each
of them. They tell me that [EMAIL PROTECTED] is an
invalid e-mail address.
__
Do You Yahoo!?
Yahoo
16 matches
Mail list logo