w indexie:
gdzie ma byc ladowana tresc wstawiasz
<? include ("frame.php"); ?>
a link do podstrony np. <a href=?cat=sklady>
plik frame.php :
<?
switch ($_GET['cat'])
{
case ("sklady"):
include ("sklady.php");
break;
case ("mp3"):
include ("mp3.php");
break;
//( ... )
default:
include ("tutaj to co ma byc pokazane po wlaczeniu strony np. newsy.php");
}
?>
i w pliku sklady.php
<?
switch ($_GET['id'])
{
case ("pyt"):
include ("pyt.php");
break;
case ("mmd"):
include ("mmd.php");
default:
echo '<table width="476" border="0" cellpadding="0" cellspacing="0"> <tr>
<td background="'.$pora.'/gfx/belka_tekst.jpg" valign="top"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="white"> <b>Składy</b></font></td>
</tr>
</table>
<br>
<table width="443" border="0" align="center" height="205" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<a href=?cat=sklady&id=pyt>[:: Pytajnik ::]</a><br><br>
<a href=?cat=sklady&id=mmd>[:: MMD ::] </a><br><br>
</td>
</tr>
</table>';
}
?>
po kliknieciu w sklady link wyglada index.php?cat=sklady po czym w sklady klikniesz np. Pytajnik to jest index.php?cat=sklady&id=pyt
chyba jasno to przedstawilem, nie bedziesz czegos wiedzial to pisz