Hi guys,
At the mo I am using php function to fetch different data stored all in one page so that I only have to have the code for my header and navigation once and then I can display the different pages all from this page – if this makes sense.
I have since been told that I should be storing the other pages content in different files and fetching them from their… cos my page/file will be too big otherwise…
Does any1 have any idea how to do this please?
I would really appreciate any help/examples.
This is the way I am doing it currently
<?php
function getCSS($x) {
if ($x == $_GET[“Section”]) {
echo “activeButton”;
} else {
echo “button”;
}
}
?>
<td align=”middle”><a class=”<?php getCSS(“”)?>”href=”index.php”>Home</a></td>
<td align=”middle” width=”1″><span class=”style22″> | </span></td>
<td align=”middle”><a class=”<?php getCSS(“Registration”)?>” href=”index.php?Section=Registration”>Free Registration</a></td>
<?php
switch ($_GET[“Section”]) {
case “Registration”:
Thanks very much
Brain.