/a></center><br>";
include("foot.inc.php");
exit();
}
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}contentquot;,$email)) {
echo"<br><center><font color=blue>E-Mail地址格式不对。请</font><a href=javascript:history.go(-1);>返回</a></center><br>";
include("foot.inc.php");
exit();
}
if($tel==""){
echo"<br><center><font color=blue>联系的电话不能为空。请</font><a href=javascript:history.go(-1);>返回</a></center><br>";
include("foot.inc.php");
exit();
}
if(strlen($tel)!=11 || strlen($tel)!=12 || strlen($tel)!=13){
echo"<br><center><font color=blue>联系的电话长度不正确。请</font><a href=javascript:history.go(-1);>返回</a></center><br>";
include("foot.inc.php");
exit();
}
if($gender==""){
$null1="空";}
if($xueli==""){
$null2="空";}
if($money==""){
$null3="空";}
if($addr==""){
$null4="空";}
$birthday="$year.-.$month.-.$day";
$time=time();
$conn=@mysql_connect("localhost");
$sql=@mysql_select_db("jocky",$conn);
$result=@mysql_query("select * from user1 where name=''$name''" ,$conn);
$sqldo="insert into user1 (name,truename,password,pwwhat,pwan,personalid,gender,xueli,birth,email,tel,money,addr,time) values(''$name'',''$truename'',''$password'',''$pwwhat'',''$pwan'',''$personalid'',''$null1'',''$null2'',";
$sqldo.="''$birthday'',''$email'',''$tel'',''$null3'',''$null4'',''$time'')";
$query=@mysql_query($sqldo,$conn);
if($query){
echo"<br><center><font color=blue>恭喜你,你已注册成功!请</font><a href=index.php>登录</a></center><br>";
exit();
}else{
echo"<br><center><font color=blue>服务器忙,不能为你注册,请稍后再注册!</font><a href=index.php>回主页</a></center><br>";
}
@mysql_close($conn);
?>
</div>
<?include("foot.inc.php")?>
</body>
</html>