⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xgmm.php

📁 十大精典PHP项目开发全程案例+代码
💻 PHP
字号:
<?php session_start();
if($_SESSION[online_number]==true){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
-->
</style>
</head>
<script language="JavaScript" type="text/javascript">
 function check_pass(){
   if(form1.online_number.value==""){
     alert("请输入准考证号!");
	 form1.online_number.select();
	 return(false);
	}
	if(form1.online_pass.value==""){
     alert("请输入密码!");
	 form1.online_pass.select();
	 return(false);
	}
	if(form1.online_pass2.value==""){
     alert("请输入新密码!");
	 form1.online_pass2.select();
	 return(false);
	}
	if(form1.online_pass3.value==""){
     alert("请输入确认密码!");
	 form1.online_pass3.select();
	 return(false);
	}
	if(form1.online_pass2.value!=form1.online_pass3.value){
     alert("您输入的新密码和确认密码不符!");
	 form1.online_pass22.select();
	 return(false);
	}
   return(true);	 
 }
</script>
<body>
<table width="500" height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<form name="form1" method="post" action="xgmm_ok.php" onSubmit="javascript:return check_pass();" >
<table width="592" height="103" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#676767">
  <tr>
    <td width="104" bgcolor="#EEEEEE">&nbsp;</td>
    <td width="157" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="95" bgcolor="#EEEEEE">&nbsp;</td>
    <td width="208" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td align="right" bgcolor="#EEEEEE"><span class="STYLE1">准考证号码:</span></td>
    <td bgcolor="#FFFFFF"><input name="online_number" type="text" id="online_number" size="20" /></td>
    <td bgcolor="#EEEEEE"><span class="STYLE1">&nbsp;</span></td>
    <td bgcolor="#FFFFFF"><span class="STYLE1">&nbsp;</span></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#EEEEEE"><span class="STYLE1">密&nbsp; 码:</span></td>
    <td bgcolor="#FFFFFF"><input name="online_pass" type="password" id="online_pass" size="20" /></td>
    <td bgcolor="#EEEEEE"><span class="STYLE1">&nbsp;</span></td>
    <td bgcolor="#FFFFFF"><span class="STYLE1">&nbsp;</span></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#EEEEEE"><span class="STYLE1">新密码:</span></td>
    <td bgcolor="#FFFFFF"><input name="online_pass2" type="password" id="online_pass2" size="20" /></td>
    <td align="right" bgcolor="#EEEEEE"><span class="STYLE1">密码验证:</span></td>
    <td bgcolor="#FFFFFF"><input name="online_pass3" type="password" id="online_pass3" size="20" /></td>
  </tr>
  <tr>
    <td bgcolor="#EEEEEE">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#EEEEEE"><input type="submit" name="Submit" value="提交" /></td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
<?php
}else{
echo "<script> alert('请您正确登录!'); window.location.href='index.php?online=用户登录';</script>";
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -