Nel mio sito (www.fdiodato.tk) ho un guestbook. Se si accede, nella pagina del guestbook, sotto la scritta "guestbook", c`e` scritto "home". Se si preme, compaiono due frame con il menu! Non so come risolvere il problema.
Vi copio parte dello script del mio guestbook:
Codice PHP:
<?
//--Change the following variables
//Title of your guestbook
$title = "Guestbook";
//Change "admin" with your own password. It's required when you delete an entry
$admin_password = "xxxxxxx";
//Enter your email here
$admin_email = "info@fdiodato.tk";
//Your website URL
$home = "http://fdiodato.altervista.org/ita/indice.htm";
//Send you an email when someone add your guestbook, YES or NO
$notify = "YES";
//Your Operating System
//For Windows/NT user : WIN
//For Linux/Unix user : UNIX
$os = "WIN";
//Maximum entry per page when you view your guestbook
$max_entry_per_page = "10";
//Name of file used to store your entry, change it if necessary
$data_file = "gbook.dat";
<html>
<head><title>www.fdiodato.tk</title></head>
<body bgcolor="<?=$background?>" link="<?=$link?>" vlink="<?=$visited_link?>" alink="<?=$active_link?>" topmargin="0" marginheight="0" style="font-family:<?=$font_face?>">
<center>
<font size="6" color="<?=$title_color?>"><b><?=$title?></b></font><br>
<font size="2" color="<?=$title_color?>">(:: <b><a href="<?=$home?>"><font color="<?=$title_color?>">
Home</font></a></b> ::)</font><br><br>
<table width="600" cellpadding="0" cellspacing="1" border="0">
<tr bgcolor="<?=$table_border?>">
<td>
<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr>
<td bgcolor="<?=$table_top?>" colspan="2" width="585">
<font size="2" color="#ffffff"><b>Premi
<a href="<?="$PHP_SELF?do=add_form&page=$page"?>">qui</a> per firmare il guestbook</font></b>
</td>
<td bgcolor="<?=$table_top?>" align="center" width="15">
<a href="mailto:<?=$admin_email?>"><img src="webmaster.gif" border="0" alt="Contatta il webmaster" align="center"></a>
</td>
</tr>
<?
$jml_page = intval($jmlrec/$max_entry_per_page);
$sisa = $jmlrec%$max_entry_per_page;
if ($sisa > 0) $jml_page++;
$no = $page*$max_entry_per_page-$max_entry_per_page;
if ($jmlrec == 0) echo "<tr><td colspan=\"3\" bgcolor=\"white\" align=\"center\"><font size=\"3\">Non ci sono ancora commenti.</font></td></tr>";
$w = 0; //--Color
for ($i=0; $i<$max_entry_per_page; $i++) {
$no++;
$recno = $no-1;
if (isset($record[$recno])) {
$row = explode("|~|",$record[$recno]);
if ($w==0) {
$warna = $table_content_1a;
$warna2 = $table_content_1b;
$w=1;
} else {
$warna = $table_content_2a;
$warna2 = $table_content_2b;
$w=0;
}
echo "<tr>
<td bgcolor=\"$warna2\" align=\"center\" valign=\"top\" width=\"15\">
<font size=\"2\">$no</font>
</td>
<td bgcolor=\"$warna\" width=\"570\">
<table border=\"0\" width=\"100%\">
<tr>
<td>
<font size=\"1\">$row[2]</font><br>
<font size=\"2\"><b>$row[3]</b></font>
</td>
";
echo "<td align=right valign=top>
<a href=\"mailto:$row[4]\"><img src=\"email.gif\" border=0 alt=\"$row[3]'s email\"></a>";
if (trim($row[6]) <> "" && trim($row[6]) <> "http://") {
if (ereg("^http://", trim($row[6]))) echo " <a href=\"$row[6]\" TARGET=\"_blank\"><img src=\"homepage.gif\" border=\"0\" alt=\"$row[3]'s homepage\"></a>";
else echo " <a href=\"http://$row[6]\" TARGET=\"_blank\"><img src=\"homepage.gif\" border=\"0\" alt=\"$row[3]'s homepage\"></a>";
}
echo "</td></tr></table>";
echo "<br><table border=\"0\" width=\"100%\">
<tr><td width=\"5\"> </td><td>
<font size=\"2\" face=\"$message_font_face\" size=\"$message_font_size\">$row[5]</font>
</td></tr>
</table>
";
echo "</td>";
echo "<td valign=\"top\" bgcolor=\"$warna2\" align=\"center\" width=\"15\">
<a href=\"$PHP_SELF?do=del&id=$row[1]&page=$page\">
<img src=\"del.gif\" alt=\"Delete entry # $no\" border=0 align=\"center\"></a>
</td>
</tr>";
} //--end if
} //--end for
echo "<tr><td colspan=\"3\" bgcolor=\"$table_bottom\" align=\"center\" width=\"600\"><font size=\"1\">";
if ($jml_page > 1) {
if ($page <> 1) echo "[<a href=\"$PHP_SELF?page=1\">Top</a>] "; else echo "[Top] ";
echo "Page # ";
if ($jml_page > 10) {
if ($page < 5) {
$start = 1;
$stop = 10;
} elseif ($jml_page - $page < 5) {
$start = $jml_page - 9;
$stop = $jml_page;
} else {
$start = $page-4;
$stop = $page+5;
}
if ($start <> 1) echo "... ";
for ($p=$start; $p<=$stop; $p++) {
if ($p == $page) echo "<font color=\"$active_link\"><b>$p</b></font> ";
else echo "<a href=\"$PHP_SELF?page=$p\">$p</a> ";
}
if ($stop <> $jml_page) echo "... ";
echo "of $jml_page ";
} else {
for ($p=1; $p<=$jml_page; $p++) {
if ($p == $page) echo "<font color=\"$active_link\"><b>$p</b></font> ";
else echo "<a href=\"$PHP_SELF?page=$p\">$p</a> ";
}
}
if ($page <> $jml_page) echo "[<a href=\"$PHP_SELF?page=$jml_page\">Bottom</a>]"; else echo "[bottom]";
} else echo "Pagina #1 di 1";
echo "</font></td></tr>";
?>
</table>
</td>
</tr>
</table><br><br>
<!-- Please don't remove this copyright notice.-->
<font color="<?=$title_color?>" size="1"><a href="http://www.promosi-web.com/script/guestbook" target="_blank"><font color="<?=$title_color?>">
PHP Guestbook</font></a></font>
<!-- Thank you -->
</center>
</body>
</html>
<?
break;
case "add_form":
?>
<!-- For advanced user : customize your form here, but don't change both the name and value -->
<html>
<head>
<title>www.fdiodato.tk</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="<?=$background?>" style="font-family:<?=$font_face?>">
<div align="center">
<font size="5" color="<?=$title_color?>"><b><?=$title?></b></font><br>
<font size="1"><b><a href="<?=$home?>"><font color="<?=$title_color?>">Home</font></a>
:: <a href="<?=$PHP_SELF?>">Leggi il guestbook</a></b></font>
<form method="post" action="<?=$PHP_SELF?>">
<input type="hidden" name="do" value="add">
<table width="460" border="0" cellspacing="0" cellpadding="0" bgcolor="<?=$table_border?>">
<tr>
<td>
<div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr bgcolor="<?=$table_content_1a?>">
<td width="28%">
<div align="right"><font size="2">*Nome : </font></div>
</td>
<td width="72%">
<input type="text" name="vname" size="30" maxlength="70">
</td>
</tr>
<tr bgcolor="<?=$table_content_1a?>">
<td width="28%">
<div align="right"><font size="2">*Email : </font></div>
</td>
<td width="72%">
<input type="text" name="vemail" size="30" maxlength="100">
</td>
</tr>
<tr bgcolor="<?=$table_content_1a?>">
<td width="28%">
<div align="right"><font size="2">URL : </font></div>
</td>
<td width="72%">
<input type="text" name="vurl" size="30" maxlength="150" value="http://">
</td>
</tr>
<tr bgcolor="<?=$table_content_1a?>">
<td valign="top" width="28%">
<div align="right"><font size="2">*Commento : </font></div>
</td>
<td width="72%">
<textarea name="vcomment" cols="40" rows="7" wrap="virtual"></textarea><br><font size="1">
* Campi obbligatori</font></td>
</tr>
<tr bgcolor="<?=$table_content_1b?>">
<td colspan="2">
<div align="center">
<font size="2">
<input type="submit" value="Invia">
<input type="reset" value="Cancella">
<input type="button" value="Indietro" onclick="window.location='<?="$PHP_SELF?page=$page"?>'"></font></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<!-- End of entry form -->
Grazie!
Francesco