Jump to content

if email contains "x" then...


Carlo

Recommended Posts

Hello,

hopefully someone can help me with this...

I don't know hardly any PHP, but I seem able to hack my way though it to do some modifications. But I'm stuck at a really simple thing.

 

I have a form script in which I want to detect if the email is from a specific domain, for example, "hotmail.com"

 

$email=$_POST['email'];

 

Example: [email protected]

 

I need something in the line of:

if {$email contains "hotmail"} echo "you are using a hotmail account"

 

 

*It's the part of the examining the email for "hotmail" that I cant figure out how to do. I know it's really simple, but I'm trying to learn. Any help would be greatly appreciated, thanks.

Link to comment
https://forums.phpfreaks.com/topic/198536-if-email-contains-x-then/
Share on other sites

Archived

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

×
×
  • Create New...

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.