Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP升级后,带有GET的PHP开关不起作用_Php_Html_Get_Switch Statement - Fatal编程技术网

PHP升级后,带有GET的PHP开关不起作用

PHP升级后,带有GET的PHP开关不起作用,php,html,get,switch-statement,Php,Html,Get,Switch Statement,我有一个在PHP5.2.6上正常运行的网站,但是PHP5.4有一个问题。在我点击链接后,我就退出了,所以我必须再次登录,我得到了第一张表单 我的HTML和PHP代码在同一个文件中 HTML: 很可能是php.ini中的短标记设置“不起作用”是什么意思?错误消息?白色页面?我已注销,必须重新登录。我应该正确地切换到formAs@exussum的另一部分吗?他说:change短标签已启用。。和 <table width="99%" cellpadding="0"> <tr>

我有一个在PHP5.2.6上正常运行的网站,但是PHP5.4有一个问题。在我点击链接后,我就退出了,所以我必须再次登录,我得到了第一张表单

我的HTML和PHP代码在同一个文件中

HTML:


很可能是php.ini中的短标记设置“不起作用”是什么意思?错误消息?白色页面?我已注销,必须重新登录。我应该正确地切换到formAs@exussum的另一部分吗?他说:change
短标签已启用。。和
<table width="99%" cellpadding="0">
<tr>
  <th class="<?=selected('',$_GET['form'])?>">
    <a href="./?web=login">Personal info</a>
    <img src="<?=$mark1?>" title="<?=$title1?>" alt="<?=$title1?>">
  </th>
  <th class="<?=selected('1',$_GET['form'])?>">
    <a href="./?web=login&amp;form=1">Meeting</a>
    <img src="<?=$mark2?>" title="<?=$title2?>" alt="<?=$title2?>">
  </th>
  <th class="<?=selected('2',$_GET['form'])?>">
    <a href="./web=login&amp;form=2">Competition 1</a>
    <img src="<?=$mark3?>" title="<?=$title3?>" alt="<?=$title3?>">       
  </th>
  <th class="<?=selected('4',$_GET['form'])?>">
    <a href="./?web=login&amp;form=4">Competition 2</a>
    <img src="<?=$mark4?>" title="<?=$title4?>" alt="<?=$title4?>">
  </th>
</tr>
               switch ($_GET['form'])
                 {
    case 3:
      include "passwd.php";
    break;
     case 4:
      include "competition2.php";
    break;
    case 2:
      include "competition1.php";
    break; 
            case 1:
      include "meeting.php";
    break;
    default:
      include "pinfo.php";
    break;
   } // print_r($_SESSION);

            }else{          ?>