How to do the email address in php code!!
Posted: Mon Apr 19, 2004 11:47 am
hi, how to do the email address.
I do the code already, but when i run the guestbook look like nothing happen like that.
Can you please help me to see the coding?
Thankx ^_^
[Edit: Added PHP tags fror eyecandy. --JAM]
I do the code already, but when i run the guestbook look like nothing happen like that.
Can you please help me to see the coding?
Thankx ^_^
Code: Select all
$errmsg = "" ;
if ($email != "")
{
$errmsg = htmlentities($email);
$email_checker = explode("@", $email);
if (!IsSet($email_checker[1]))
{
$errmsg = "$email doesn't look like a valid email address";
}
else
{
//email checked
}
}