Re: How to format text in a mailto:
- From: "Rik" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 13:55:17 +0200
Jon Thompson wrote:
I use this to validate the email address entered into a form. Might be
useful:
function ValidateEmailAddress($EmailAddress){
$EmailAddress = strtolower(trim($EmailAddress));
if
(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z
{2,4})$", $EmailAddress)){ return FALSE;
} else {
return $EmailAddress;
}
}
Which will exclude a lot of valid emailadresses. We recently had a
discussion on this on comp.lang.javascript. Check
http://en.wikipedia.org/wiki/Email_address#Limitations
Grtz,
--
Rik Wasmus
.
- References:
- How to format text in a mailto:
- From: abc
- Re: How to format text in a mailto:
- From: Martin Jay
- Re: How to format text in a mailto:
- From: abc
- Re: How to format text in a mailto:
- From: Jon Thompson
- How to format text in a mailto:
- Prev by Date: Re: How to format text in a mailto:
- Next by Date: Re: looping through text with array_key_exists function
- Previous by thread: Re: How to format text in a mailto:
- Next by thread: Re: How to format text in a mailto:
- Index(es):