?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help
RFP Direct

?
?Re: How to verify the format of an email address?
Author:??(---.prontoserve.co.uk)
Date:???08-25-04 09:16

Hi,

So far I got this...

function verify_email($input) {
return eregi("^[a-z0-9\-\.]+\.[a-zA-Z]{2,4}(:[a-z0-9]*)?/?([a-z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$", $input);
}

But doesn't seem to work - it alrease returnse false even if $input is a real email address. Any ideas?

?Topics Author? Date
?How to verify the format of an email address???new
Mastermind 08-24-04 11:37?
?Re: How to verify the format of an email address???new
bastien 08-24-04 15:54?
?Re: How to verify the format of an email address???new
Mastermind 08-24-04 17:03?
?Re: How to verify the format of an email address???new
Mastermind 08-25-04 09:16?
?Re: How to verify the format of an email address???new
bastien 08-26-04 06:23?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > Hi, > > So far I got this... > > function verify_email($input) { > return > eregi("^[a-z0-9\-\.]+\.[a-zA-Z]{2,4}(:[a-z0-9]*)?/?([a-z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$", $input); > } > > But doesn't seem to work - it alrease returnse false even if > $input is a real email address. Any ideas? ">??

Provided By
Phorum