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

📄 message.php

📁 希望这个对大家有用
💻 PHP
字号:
<?php
$errorcode = $_GET["error"];
switch( $errorcode ) {
case "1":
  $errormsg = sprintf( "用户名%s已被注册,请重新输入!", $_GET["requsername"] );
  break;
case "2":
  $errormsg = "用户名或密码错误,请核实后登录!";
  break;
case "3":
  $errormsg = "指定的用户名不存在!";   
  break;
case "4":
  $errormsg = "答案错误,请核实后重新输入!";   
  break;
case "5":
  $errormsg = "本页面是会员专属区域,你无权访问!";   
  break;
case "6":
  $errormsg = "本页面是管理员专属区域,你无权访问!";   
}
?>
<!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=gb2312" />
<title>
<?php echo $errormsg; ?></title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function setBack() {
  if ( history.length > 0 )
    btnBack.style.display = "inline";
  else
    btnBack.style.display = "none";  
}	
</script>
<body onload="setBack();">

<?php include( "menu.php" ); ?>
<br />
<table width="320" border="1" align="center" rules="none">
  <tr>
    <th colspan="2" bgcolor="#0066CC" class="title" scope="col">错误信息</th>
  </tr>
  <tr>
    <td width="64" height="60" align="center"><img src="images/alert.gif" width="32" height="32" /></td>
    <td width="220" align="center"><?php echo $errormsg; ?>&nbsp;</td>
  </tr>
  <tr>
    <td height="32" colspan="2" align="center"><input name="btnBack" type="button" id="btnBack" onclick="javascript:history.back();" value="返回上一页" />
    &nbsp;
    <input name="Submit2" type="button" onclick="javascript:self.close();" value="关闭窗口" /></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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