我有一个在PHP 5.2.6上正常运行的网站,但我有一个问题与PHP 5.4。点击链接后,我退出了,所以我必须再次登录,然后收到第一张表格。
我的HTML和PHP代码在同一个文件中。
HTML:
<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&form=1">Meeting</a>
<img src="<?=$mark2?>" title="<?=$title2?>" alt="<?=$title2?>">
</th>
<th class="<?=selected('2',$_GET['form'])?>">
<a href="./web=login&form=2">Competition 1</a>
<img src="<?=$mark3?>" title="<?=$title3?>" alt="<?=$title3?>">
</th>
<th class="<?=selected('4',$_GET['form'])?>">
<a href="./?web=login&form=4">Competition 2</a>
<img src="<?=$mark4?>" title="<?=$title4?>" alt="<?=$title4?>">
</th>
</tr>
PHP:
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{ ?>