Ho modificato legermente il codice:
codice:
<form method="POST" action="sendmail.php" enctype="text/plain">
<table cellaspacing="0" border="0" cellpadding="2" width="400">
<tr>
<td class="form_table"> Nome:
<input type="text" name="nome" size="43"> </td>
</tr>
<tr>
<td class="form_table"> Cognome:
<input type="text" name="cognome" size="43" > </td>
</tr>
<tr>
<td class="form_table"> Cellulare:
<input type="text name="cellulare" size="43" "> </td>
</tr>
<tr>
<td class="form_table"> Email:
<input type="textname="email" size="43" "> </td>
</tr>
<tr>
<td class="form_table"> Messaggio:
<textarea name="messaggio" cols="41" rows="3"></textarea></td>
</tr>
<tr>
<td colspan="2" valign="bottom" align="center" height="30">
<input name="privacy" class="checkbox" style="float: left;" type="checkbox">
Acconsento al trattamento dei dati personali come da informativa sulla privacy in base al D.Lgs.196/2003.</td>
</tr>
<tr>
<td colspan="2" valign="bottom" align="center" height="30"><input type="submit" value="Invia">
<input type="reset" value="Cancella"></td>
</tr>
</table>
</form>
e questo lo script:
codice:
/ COSTRUIAMO IL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Nome: " . trim(stripslashes($_POST["nome"])) . "\n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
$body .= "Cellulare: " . trim(stripslashes($_POST["cellulare"])) . "\n";
$body .= "Email: " . trim(stripslashes($_POST["email"])) . "\n";
$body .= "Messaggio: " . trim(stripslashes($_POST["messaggio"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Landing Page";
Nella mail mi compaiono le intestazioni (Nome
ma non i valori inseriti nei campi
Cosa sbaglio