<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>注册</title> <link rel="stylesheet" type="text/css" href="css/register.css"> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> <script src="js/verify.js" type="text/javascript"></script> <?php if ($_POST["name"]) { $name = $_POST['name']; include "verify.php"; $password = $_POST['password']; if (!Verify::isNames($name, 2, 20, 'EN')) { echo "<script language=\"JavaScript\">alert(\"用户名不合法!\");</script>"; } } ?> <script type="text/javascript"> $(document).ready(function(){ var tipUser = '******',tipPass = '******',tipconfirmPass = '******' ,tipemail='请输入您的邮箱!'; tips($('#register_name'),tipUser,false); tips($('#register_password'),tipPass,true); tips($('#register_confirm_password'),tipconfirmPass,true); tips($('#register_email'),tipemail,true); }); </script> </head> <body>