Re: [PHP] Re: How do I validate input using php?

2002-07-25 Thread Miguel Cruz
On Wed, 24 Jul 2002, Mike Mannakee wrote: Here's the code I use to validate emails: function check_email($email) { global $email; $regex=^([a-z0-9_]|\\-|\\.)+(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$; return eregi($regex, $email, $trash); } Please search the archives on this topic; it's

[PHP] Re: How do I validate input using php?

2002-07-24 Thread Mike Mannakee
Here's the code I use to validate emails: function check_email($email) { global $email; $regex=^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$; return eregi($regex, $email, $trash); } Hope this helps, Mike ØYstein HåLand [EMAIL PROTECTED] wrote in message [EMAIL