Hi All, :rolleyes:
I wrote a code and it doesnt do nething :glare:
function submission_junky($uemail) {
global $prefix, $db, $module_name, $adminmail;
if( preg_match("hotmail", $uemail)); {
$hotmail = (".hotmail.");
} else {
preg_match("yahoo", $uemail)); {
$yahoo = (".yahoo.");
} else {
preg_match("aol", $uemail)); {
$aol = (".aol.");
}
}
if(preg_match == 1); {
$junkmail = (".Youareusinga." $hotmail, $yahoo, $aol ".emailaddress.");
} else {
preg_match == 0;
$junkmail = (".thankyou.")
}
}
$uemail = User Email = this is a field in a form
$junkmail = Email address provider in use
What i want the code to hopefully do...
I want it too look for Homail, Yahoo or AOL in $uemail
if there is one of those email providers there, the i want it to say the one it has picked up, then on the next page it will say something like :
You are using a <b>Hotmail</b> email Address
I would then make a link where the user can click it and too see where the emails from my site goes, either in the inbox on the junk mail in there emails.
Hope someone can help
Thanks in Adv