<?
Function CkEmail($email){
if (eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email))
return true;
else
return false;
}

Function CkREmail($email){
include "config.php";
$sql = " SELECT * FROM `epaper` where `email`='".$email."'";
$rows = mysql_query($sql) or die("Error!!");
if(mysql_num_rows($rows)>0)
return true;
else
return false;
}
?>

lovean 發表在 痞客邦 PIXNET 留言(0) 人氣()