Jump to content

Archived

This topic is now archived and is closed to further replies.

robcrozier

check if email address contains @

Recommended Posts

hi can anyone tell me how i can check as to whether a given email address contains an @ sign in my registration form.

cheers!

Share this post


Link to post
Share on other sites
the easiest way - stristr:
[code]
if (stristr($email_address, '@'))
{
   echo 'found the @ symbol';
}
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.