there's no code that allows you to do this, otherwise spammers would have a field day.
did you google this question? no?
http://www.dailysofts.com/program/92..._Software.html
cuz i found that, along with 20 questions posted.
[PHP]
function google($yourQ)
{
if ($yourAnswer == NULL)
{
echo "Help! no answer on google";
}
else
{
$you = $bangHeader->Table * 100;
return $you;
}
}
[/PHP]
google("Email Verification Exists");
HAHA!
I'm so saving that; use it on a newbie caught in the headlights :D
To the OP:
The best way to validate an email is using a regex (regular expression)
There are soooo many tutorials on the world wide internets, so a simple google search (no headbanging required) will suffice!
Here's a validation i use:
[php]
function validateEmail(){
global $__errorEmail;
$email = $_POST['email'];
$__emailExp = '/^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$/';
if(!preg_match($__emailExp, $email)){
$__errorEmail = "Invalid Email - Please re-enter.";
} else {
return true;
}
}
if(validateEmail()){
echo "email is valid";
} else {
echo "Come again";
}
[/php]
:)
[/php]