Originariamente inviato da DJVegetas
Scusa nn ho capito bene, tu dici che in menu sinistra anziche di scrivere ?pag=tutorials scrivo ?pag=xxxxxx?Ma cosi nn specifico la pagina o no?
no perchè la pagina è già stata specificata in "index.php".
Mettiamo che hai 3 pagine, tutorials, script e immagini.
I tuoi 3 link saranno:
Codice PHP:
[url="index.php?pag=tutorials"]VIDEO TUTORIALS PHOTOSHOP [/url]
[url="index.php?pag=script"]SCRIPT PHOTOSHOP [/url]
[url="index.php?pag=immagini"]IMMAGINI PHOTOSHOP [/url]
ovviamente dovrai avere 3 pagine chiamate:
tutorials.php
script.php
immagini.php
che verranno incluse, in base al click su uno dei 3 link, nella pagina "index.php" che avrà il codice che hai postato, con la modifica al centro:
codice:
<table width="569" border="0" cellpadding="0" cellspacing="0" background="images/corp.png">
<tr>
<td width="13" height="26"></td>
<td width="14"></td>
<td width="482"></td>
<td width="13"></td>
<td width="47"></td>
</tr>
<tr>
<td height="83"></td>
<td></td>
<td valign="top" background="images/adve.png"><div style="position:relative; top: 18px; width: 468px; height: 60px; left: 6px;">
</div></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="22"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="434"></td>
<td colspan="3" align="center" valign="top">
<?php
if (isset($_GET["pag"])) { // Se esiste la variabile pag
if (file_exists($_GET["pag"].".php")) { // se esiste la pagina con nome identico alla variabile get */
include_once($_GET["page"].".php");
}else {
// codice da eseguire se la pagina non esiste
}
}else {
// altrimenti eseguo queste istruzzioni
}
?>
</td>
<td></td>
</tr>
<tr>
<td height="1053"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="201" colspan="5" valign="top">[img]images/corp_fine.png[/img]</td>
</tr>