0
<div id="navigation">
<ul>
<li><a href="?id=action">Action</a></li>
<li><a href="?id=adventure">Adventure</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<?php
$id = (isset($_GET['id'])); set the value
switch($id) {
case 'actiune':include('/actiune/index.php');//first page
break;
case 'aventura':include('/aventura/index.php');//second page
break;
}
?>
當我訪問冒險時,需要我到/action/index.php
爲什麼? 我需要一些幫助在php中切換語句切換到特定頁面
我得到通知:未定義指數:ID在...上線......在 –
的主網頁,我收到了通知:未定義指數:在... ID上線...在主頁面中 –