<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Errore sintassi guestbook]]></title><description><![CDATA[<p dir="auto">Ciao gente.. sono un nuovissimo utente di questo forum!<br />
Ho scaricato da internet un file di un guestbook in PHP, per studiarmelo e modificarmelo. Una volta che ho modificato il tutto mi da un errore di sintassi sulla linea 96!<br />
Mi da questo errore:</p>
<pre><code>Parse error: syntax error, unexpected T_IF in /membri/guinnesstime/altro/index.php3 on line 96
</code></pre>
<p dir="auto">questo è il codice della parte:</p>
<pre><code class="language-php">if($action=="Invia") {
if(empty($message)
|| empty($email)
|| empty($person)
if($error=="yes") {    //qui linea 96

echo"&lt;big&gt;The Following errors have occurred, please press the back button and fix them.&lt;/big&gt;&lt;hr&gt;";

if(empty($message)) { echo"Please enter your comments&lt;br&gt;"; }
if(empty($email)) { echo"Please enter your email address&lt;br&gt;"; }
if(empty($person)) { echo"Please enter your name&lt;br&gt;"; }

echo"&lt;hr&gt;";

} else {

$print_text = "|$date_output|$person|$email|$site_address|$message|\n";

        $fp = fopen($logfile, "a");
        $fw = fwrite($fp, $print_text);
        fclose($fp);

$message = str_replace ("&lt;br&gt;","\n", $message);
$like_added = str_replace ("&lt;br&gt;","\n", $like_added);

mail("$email", "$email_msg_title", "$email_msg", "From: &lt;$admin_email&gt;");
mail("$admin_email", "Someone signed your GuestBook", "$date_output
Name: $person
Email: $email
Site address: $site_address
Comments: $message
", "From: &lt;$admin_email&gt;");
echo "&lt;center&gt;&lt;hr&gt;Thanks For signing!&lt;br&gt;\n";
echo "&lt;a href=?action=view&gt;View GuestBook&lt;/a&gt;&lt;hr&gt;&lt;/center&gt;";

    }
}
</code></pre>
<p dir="auto">Grazie a tutti per l'aiuto..!</p>
]]></description><link>https://dev.connect.gt/topic/22672/errore-sintassi-guestbook</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 11:01:45 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/22672.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Dec 2006 20:39:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Errore sintassi guestbook on Tue, 05 Dec 2006 12:45:27 GMT]]></title><description><![CDATA[<p dir="auto">eh già.. la tonda.. non ci avevo fatto caso.. chiedo perdono! <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Grazie ancora! cmq funziona.. ho un po' da mettere a posto.. se vuoi vederlo il link è:<br />
<a href="http://guinnesstime.altervista.org/altro/index.php3" rel="nofollow ugc">http://guinnesstime.altervista.org/altro/index.php3</a></p>
]]></description><link>https://dev.connect.gt/post/405381</link><guid isPermaLink="true">https://dev.connect.gt/post/405381</guid><dc:creator><![CDATA[ilsommo666]]></dc:creator><pubDate>Tue, 05 Dec 2006 12:45:27 GMT</pubDate></item><item><title><![CDATA[Reply to Errore sintassi guestbook on Tue, 05 Dec 2006 07:47:49 GMT]]></title><description><![CDATA[<p dir="auto">Eh si eh, c'è un errore grande quanto una casa....:D</p>
<pre><code>[COLOR=#000000][COLOR=#007700]if(empty([/COLOR][COLOR=#0000bb]$message[/COLOR][COLOR=#007700])|| empty([/COLOR][COLOR=#0000bb]$email[/COLOR][COLOR=#007700])|| empty([/COLOR][COLOR=#0000bb]$person[/COLOR][COLOR=#007700])) [/COLOR][COLOR=#0000bb]$error [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"yes"[/COLOR][COLOR=#007700];  [/COLOR][/COLOR]
</code></pre>
<p dir="auto">mancava una tonda chiusa, saluti</p>
]]></description><link>https://dev.connect.gt/post/405360</link><guid isPermaLink="true">https://dev.connect.gt/post/405360</guid><dc:creator><![CDATA[spaccioman]]></dc:creator><pubDate>Tue, 05 Dec 2006 07:47:49 GMT</pubDate></item><item><title><![CDATA[Reply to Errore sintassi guestbook on Tue, 05 Dec 2006 00:31:04 GMT]]></title><description><![CDATA[<p dir="auto">grazie della risposta.. ma mi da ancora errore in sintassi qui:</p>
<pre><code class="language-php">if(empty($message)|| empty($email)|| empty($person) $error = "yes";
</code></pre>
<p dir="auto">mi dice "unexpected T_VARIABLE"... dottore, che ha che non va? è curabile?</p>
]]></description><link>https://dev.connect.gt/post/405380</link><guid isPermaLink="true">https://dev.connect.gt/post/405380</guid><dc:creator><![CDATA[ilsommo666]]></dc:creator><pubDate>Tue, 05 Dec 2006 00:31:04 GMT</pubDate></item><item><title><![CDATA[Reply to Errore sintassi guestbook on Tue, 05 Dec 2006 00:16:10 GMT]]></title><description><![CDATA[<p dir="auto">Ciao benvenuto,</p>
<p dir="auto">c'è una if incompleta, ho corretto così, dovrebbe andare</p>
<pre><code>[COLOR=#000000][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$action[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"Invia"[/COLOR][COLOR=#007700]) {
if(empty([/COLOR][COLOR=#0000bb]$message[/COLOR][COLOR=#007700])|| empty([/COLOR][COLOR=#0000bb]$email[/COLOR][COLOR=#007700])|| empty([/COLOR][COLOR=#0000bb]$person[/COLOR][COLOR=#007700]) $error = "yes";
if([/COLOR][COLOR=#0000bb]$error[/COLOR][COLOR=#007700] == [/COLOR][COLOR=#dd0000]"yes"[/COLOR][COLOR=#007700]) {    [/COLOR][COLOR=#ff8000]//qui linea 96

[/COLOR][COLOR=#007700]echo[/COLOR][COLOR=#dd0000]"&lt;big&gt;The Following errors have occurred, please press the back button and fix them.&lt;/big&gt;&lt;hr&gt;"[/COLOR][COLOR=#007700];

if(empty([/COLOR][COLOR=#0000bb]$message[/COLOR][COLOR=#007700])) echo[/COLOR][COLOR=#dd0000]"Please enter your comments&lt;br&gt;"[/COLOR][COLOR=#007700];
if(empty([/COLOR][COLOR=#0000bb]$email[/COLOR][COLOR=#007700])) echo[/COLOR][COLOR=#dd0000]"Please enter your email address&lt;br&gt;"[/COLOR][COLOR=#007700];
if(empty([/COLOR][COLOR=#0000bb]$person[/COLOR][COLOR=#007700])) echo[/COLOR][COLOR=#dd0000]"Please enter your name&lt;br&gt;"[/COLOR][COLOR=#007700];

echo[/COLOR][COLOR=#dd0000]"&lt;hr&gt;"[/COLOR][COLOR=#007700];

} else {

[/COLOR][COLOR=#0000bb]$print_text [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"|$date_output|$person|$email|$site_address|$message|\n"[/COLOR][COLOR=#007700];

        [/COLOR][COLOR=#0000bb]$fp [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]fopen[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$logfile[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"a"[/COLOR][COLOR=#007700]);
        [/COLOR][COLOR=#0000bb]$fw [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]fwrite[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$fp[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$print_text[/COLOR][COLOR=#007700]);
        [/COLOR][COLOR=#0000bb]fclose[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$fp[/COLOR][COLOR=#007700]);

[/COLOR][COLOR=#0000bb]$message [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]str_replace [/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"&lt;br&gt;"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#dd0000]"\n"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$message[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]$like_added [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]str_replace [/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"&lt;br&gt;"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#dd0000]"\n"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$like_added[/COLOR][COLOR=#007700]);

[/COLOR][COLOR=#0000bb]mail[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"$email"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"$email_msg_title"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"$email_msg"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"From: &lt;$admin_email&gt;"[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]mail[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"$admin_email"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"Someone signed your GuestBook"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"$date_output
Name: $person
Email: $email
Site address: $site_address
Comments: $message
"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"From: &lt;$admin_email&gt;"[/COLOR][COLOR=#007700]);
echo [/COLOR][COLOR=#dd0000]"&lt;center&gt;&lt;hr&gt;Thanks For signing!&lt;br&gt;\n"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#dd0000]"&lt;a href=?action=view&gt;View GuestBook&lt;/a&gt;&lt;hr&gt;&lt;/center&gt;"[/COLOR][COLOR=#007700];

    }
}  [/COLOR][/COLOR]
</code></pre>
<p dir="auto">ciao ciao</p>
]]></description><link>https://dev.connect.gt/post/405359</link><guid isPermaLink="true">https://dev.connect.gt/post/405359</guid><dc:creator><![CDATA[spaccioman]]></dc:creator><pubDate>Tue, 05 Dec 2006 00:16:10 GMT</pubDate></item></channel></rss>