php-general | 2001062
Date: 06/30/01
- Next message: Brad Hubbard: "Re: [PHP] making e-mail link"
- Previous message: Jack Sasportas: "Re: [PHP] reading records alphebetically"
- In reply to: Clayton Dukes: "[PHP] Re: Regular Expression help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 29 Jun 2001 23:43, Clayton Dukes wrote:
> Okay, here's what I have so far:
>
> ---snip---
> if ((!$email)
>
> || ($email=="")
> || (!eregi("^[_\.0-9a-z-]+ <email protected>+[a-z]",$email))
>
> )
> $stop = "<center>"._ERRORINVEMAIL."</center><br>";
> ---snip---
>
> This works, but how can I add a second domain?
How 'bout;
---snip---
if ((!$email)
|| ($email=="")
|| (!eregi("^[_\.0-9a-z-]+ <email protected>|otherdomain.+[a-z]",$email)
)
$stop = "<center>"._ERRORINVEMAIL."</center><br>";
---snip---
Cheers,
Brad
-- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: brad <email protected> Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-419107559-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brad Hubbard: "Re: [PHP] making e-mail link"
- Previous message: Jack Sasportas: "Re: [PHP] reading records alphebetically"
- In reply to: Clayton Dukes: "[PHP] Re: Regular Expression help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

