错误显示,online变量未定义,怎么解决?
朩朩+耿
朩朩+耿 2019-02-02 14:44:01
[PHP讨论组]


<?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>


朩朩+耿
朩朩+耿

全部回复(1)
失去过去

你的online变量没有接收 $_GET

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号