登陆

错误显示,online变量未定义,怎么解决?


<?php

session_start();

?>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>在线考试系统</title>

<style type="text/css">

.style1 {color: #FFFFFF; font-size: 12px; };

</style>

</head>


<body>

<table width="1002"  border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td width="1002" ><img src="images/bg_1.jpg" width="1002" height="72" usemap="#Map" border="0"></td>

  </tr>

  <tr>

    <td width="1002"><img src="images/bg_2.jpg" width="1002" height="142" ></td>

  </tr>

</table>


<table width="1002" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="111" height="429" bgcolor="#CCCCCC" >&nbsp;</td>

    

    <td width="778" valign="top">

    <table width="778"  align="center" border="0" cellspacing="0" cellpadding="0">

      <tr>

        <td  height="26" background="images/bg_4.jpg"><table width="100%" border="0">

          <tr>

            <td width="30%">&nbsp;</td>

            <td width="70%"><span class="style1">当前位置:在线考试系统 &gt;  &nbsp;&nbsp;&nbsp;<?php echo $online ; ?></span></td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td height="377" align="center" valign="top" bgcolor="#FFFFFF">

        <?php

switch($online){

case "考生注册":

include("zhuce.php");

break;

case "考生登录":

include("denglu.php");

break;

case "修改密码":

include("xgmm.php");

break;

case "成绩查询":

include("cjcx.php");

break;

case "进入考场":

include("jrkc.php");

break;

case "选择考题":

include("xzkt.php");

break;

case "开始考试":

include("ksks.php");

break;

}

?>

        </td>

      </tr>

      <tr>

        <td > <img src="images/bg_7.jpg" width="778" height="24"></td>

      </tr>

    </table></td>

    

    <td width="113" bgcolor="#CCCCCC">&nbsp;</td>

  </tr>

</table>

<br>

<p>&nbsp;</p>


<map name="Map">

  <area shape="rect" coords="360,31,419,51" href="index.php?online=考生注册">

  <area shape="rect" coords="448,33,505,51" href="index.php?online=考生登录">

  <area shape="rect" coords="534,31,595,49" href="index.php?online=修改密码">

  <area shape="rect" coords="621,32,681,51" href="index.php?online=成绩查询">

  <area shape="rect" coords="708,32,769,52" href="index.php?online=进入考场">

  <area shape="rect" coords="797,32,853,49" href="tcdl.php">

</map>

</body>

</html>


# PHP
朩朩+耿 朩朩+耿 144 天前 161 次浏览

全部回复(2)我要回复

  • 失去过去

    失去过去2019-02-05 20:27:37

    你的online变量没有接收 $_GET

    回复
    0
  • 取消 回复 发送