登录注册jq

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>后台登录</title>
<link href="css/login.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
$(document).ready(function(){
$("#but").click(function(){
var name=$("#name").val();
var password=$("#password").val();
var sex=$("#sex").val();
var college=$("#college").val();
var ban=$("#ban").val();
var tel=$("#tel").val();
$.post("demo1.php",{'name':name,'password':password,'sex':sex,'college':college,'ban':ban,'tel':tel},function(data){
alert(data);
});
});
});
</script>
</head>
<body>

<div class="login">
<div class="message">学生信息管理系统添加界面</div>
<div id="darkbannerwrap"></div>

<input name="action" value="login" type="hidden">
<input name="name" placeholder="用户名" required="" type="text" id="name">
<hr class="hr15">
<input name="password" placeholder="密码" required="" type="password" id="password">
<hr class="hr15">
<input id="sex" name="sex" placeholder="性别" required="" type="text">
<hr class="hr15">
<input id="college" name="college" placeholder="系部" required="" type="text">
<hr class="hr15">
<input id="ban" name="ban" placeholder="班级" required="" type="text">
<hr class="hr15">
<input id="tel" name="tel" placeholder="电话" required="" type="text">
<hr class="hr15">
<input value="提交" style="width:100%;" type="submit" id="but">
<hr class="hr20">
<!-- 帮助 <a onClick="alert('请联系管理员')">忘记密码</a> -->



</div>

<div class="copyright">© 2016品牌名称 by <a href="http://www.mycodes.net/" target="_blank">源码之家</a></div>

</body>
</html>

posted @ 2017-11-23 09:24  彬斌宾  阅读(403)  评论(0)    收藏  举报