Hi everyone iam new to this php thing, Iam Working in a little page for a friend but seems is not working if u can help me and tellme what iam doing wrong please!
This is what i want, when i press the on the link (services) i want the services.html page to be displayed in the main area of the index.php
here`s the code
////////////////////////////////////////////////////////////////////////////////////////////////////////
<td width="800" height="28" background="images/line.jpg">
<ul id="menu">
<li class="active"><a href="index.php?id=home">| Home | </a></li>
<li><a href="index.php?id=services">| Services |</a></li>
<li><a href="index.php?id=fleet">| Our Fleet |</a></li>
<li><a href="index.php?id=prices">| Prices |</a></li>
<li><a href="index.php?id=contact">| Contact Us |</a></li>
<li><a href="index.php?id=linkz">| Useful Links |</a></li>
</ul>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="418" valign="top" bgcolor="#6699CC"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box">
<tr>
<td width="800" height="394" valign="top">
<?php
switch ($HTTP_GET_VARS[id]) {
default:
include ("Home.html");
break;
case 'services':
include ("services.html");
break;
case 'fleet';
include ("fleet.html");
break;
case 'prices';
include ("prices.html");
break;
case 'contact';
include ("contact.html'');
break;
include "linkz";
include ("linkz.html");
break;
}
?>
</td>
//////////////////////////////////////////////////////////////////////////////////////////////