Jump to content


Photo

check if email address contains @


  • Please log in to reply
1 reply to this topic

#1 robcrozier

robcrozier
  • Members
  • PipPipPip
  • Advanced Member
  • 175 posts

Posted 14 April 2006 - 06:07 PM

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

cheers!

#2 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 14 April 2006 - 07:07 PM

the easiest way - stristr:
if (stristr($email_address, '@'))
{
   echo 'found the @ symbol';
}

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users