<?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[Campo messaggio vuoto]]></title><description><![CDATA[<p dir="auto">Ciao a tutti. E' la prima volta che provo a realizzare una form mail html+php, apparentemente non mi sembrava difficile però non funziona come vorrei...il campo messaggio resta vuoto, però non riesco a trovare l'errore nel codice....vista anche la mia inesperienza)<br />
....qualcuno più esperto può dare un occhiata....grazie)))</p>
<pre><code class="language-php">&lt;?php
$field_name = $_POST['cf_name'];
$field_email = $_POST['cf_email'];
$field_oggetto = $_POST['cf_oggetto'];
$field_message = $_POST['cf_message'];

$mail_to = 'miamail@miamail.com';
$subject = 'Messaggio dal Sito '.$field_name;

$body_message = 'Da: '.$field_name."\n";
$body_message .= 'E-mail: '.$field_email."\n";
$body_message .= 'Oggetto: '.$field_oggetto."\n";
$body_message .= 'Messaggio: '.$field_message;

$headers = 'Da: '.$field_email."\r\n";
$headers .= 'Reply-To: '.$field_email."\r\n";

$mail_status = mail($mail_to, $subject, $body_message, $headers);

if ($mail_status) { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
        alert('Grazie per averci contattato. Ti risponderemo il prima possibile.');
        window.location = 'contatti.html';
    &lt;/script&gt;
&lt;?php
}
else { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
        alert('Message failed.');
        window.location = 'contatti.html';
    &lt;/script&gt;
&lt;?php
}
?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/173298/campo-messaggio-vuoto</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 19:38:52 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/173298.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jul 2012 13:48:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Campo messaggio vuoto on Sun, 29 Jul 2012 15:23:06 GMT]]></title><description><![CDATA[<p dir="auto">grazie mille))) ho già testato e funziona.........thanks!!!!!!</p>
]]></description><link>https://dev.connect.gt/post/1075679</link><guid isPermaLink="true">https://dev.connect.gt/post/1075679</guid><dc:creator><![CDATA[mxxxo]]></dc:creator><pubDate>Sun, 29 Jul 2012 15:23:06 GMT</pubDate></item><item><title><![CDATA[Reply to Campo messaggio vuoto on Sun, 29 Jul 2012 15:04:33 GMT]]></title><description><![CDATA[<p dir="auto">Hai impostato 2 attributi name al tag textarea.</p>
]]></description><link>https://dev.connect.gt/post/1075653</link><guid isPermaLink="true">https://dev.connect.gt/post/1075653</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Sun, 29 Jul 2012 15:04:33 GMT</pubDate></item><item><title><![CDATA[Reply to Campo messaggio vuoto on Sun, 29 Jul 2012 15:00:04 GMT]]></title><description><![CDATA[<p dir="auto">sì allego la parte relativa al form nella pagina html</p>
<pre><code class="language-html">&lt;h2&gt;Modulo Contatti&lt;/h2&gt;
                        &lt;form id="ContactForm" action="contact.php" method="post"&gt;
                            &lt;div&gt;
                                &lt;div class="wrapper"&gt;
                                    &lt;span&gt;Nome:&lt;/span&gt;
                                    &lt;input type="text" class="input" name="cf_name" &gt;
                                &lt;/div&gt;
                                &lt;div class="wrapper"&gt;
                                    &lt;span&gt;Email:&lt;/span&gt;
                                    &lt;input type="text" class="input" name="cf_email" &gt;
                                &lt;/div&gt;
                                &lt;div class="wrapper"&gt;
                                    &lt;span&gt;Oggetto:&lt;/span&gt;
                                    &lt;input type="text" class="input" name="cf_oggetto" &gt;
                                &lt;/div&gt;
                                &lt;div class="textarea_box"&gt;
                                    &lt;span&gt;Messaggio:&lt;/span&gt;
                                    &lt;textarea name="textarea" cols="50" rows="10" name="cf_message"&gt;&lt;/textarea&gt;
                                &lt;/div&gt;
                                &lt;input type="submit" value="Invia" class="button"&gt;
                            &lt;/div&gt;
                        &lt;/form&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/1075678</link><guid isPermaLink="true">https://dev.connect.gt/post/1075678</guid><dc:creator><![CDATA[mxxxo]]></dc:creator><pubDate>Sun, 29 Jul 2012 15:00:04 GMT</pubDate></item><item><title><![CDATA[Reply to Campo messaggio vuoto on Sun, 29 Jul 2012 14:03:59 GMT]]></title><description><![CDATA[<p dir="auto">Ciao mxxxo,<br />
puoi postare anche il form?</p>
]]></description><link>https://dev.connect.gt/post/1075652</link><guid isPermaLink="true">https://dev.connect.gt/post/1075652</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Sun, 29 Jul 2012 14:03:59 GMT</pubDate></item></channel></rss>