Brava hai modificato i link :).
Perdona l'attesa ecco il codice php aggiornato con la nuova variabile $_POST .. Funzionamento inserisci il destinatari nella variabile $mailto, se viene effettuata una richiesta Post allora ricevi risposta (il redirect o codice errore ecc).
Codice PHP:
<?php
if (!empty($_POST)) {
// ************Inizio Configurazione***************
//Indirizzo emai a cui inviare i msg
$mailto = "mail_destinatario";
//Oggetto della mail
$subject = "Dal mio sito";
$ip = "$_SERVER[REMOTE_ADDR]";
$browser = "$_SERVER[HTTP_USER_AGENT]";
//Pagina da mostrare dopo l'invio
$redirect = "http://annamaria75.altervista.org/grazie.html";
// ************Fine Configurazione****************
$message = '';
foreach($_POST as $key => $value) {
$message .= $key . ': ' . $value;
$message .= "\n";
}
if (@mail($mailto, $subject, $message)) {
header("Location: $redirect");
} else {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>mail.php</title>
<meta content="Valadeo LiveSite 2.0.3007" name="GENERATOR">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(255, 204, 153); background-image: url();" alink="#0000ff" link="#0000ff" vlink="#800080">
<table border="0" cellpadding="0" cellspacing="0" height="500" width="780">
<tbody>
<tr>
<td height="500" width="219">
<table border="0" cellpadding="0" cellspacing="0" height="500" width="219">
<tbody>
<tr>
<td height="353" width="116"><img style="width: 116px; height: 354px;" alt="" src="main1.jpg" align="right" border="0" height="354" hspace="0" width="116"></td>
<td height="353" width="103"><img alt="" src="main2.jpg" border="0" height="353" hspace="0" width="103"></td>
</tr>
<tr>
<td height="31" width="116">
<p> </p>
<p><a href="index.htm"><font color="#6699ff" face="Artistik" size="5">Home
Page</font> </a></p>
<p><a href="3P.htm"><font color="#6699ff" face="Artistik" size="5">3P</font></a></p>
<p><a href="5P.htm"><font color="#6699ff" face="Artistik" size="5">5P</font></a></p>
<p><a href="Documenti.htm"><font color="#6699ff" face="Artistik" size="5">Documenti</font></a></p>
<p><font face="Artistik" size="5"><a href="Contatti.htm"><font color="#6699ff">Contatti</font></a></font></p>
<p> </p>
</td>
<td></td>
</tr>
<tr>
<td height="34" width="103"></td>
</tr>
</tbody>
</table>
</td>
<td align="left" height="500" valign="top" width="70"></td>
<td align="left" height="500" valign="top" width="424">
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
<tbody>
<tr>
<td align="center" height="50" valign="center">
<div align="center"><font color="#6699ff"><!--StartFragment --><font color="#000000"> </font><br>
<!--StartFragment --><font color="#000000"> </font>
<table style="text-align: left;" border="0" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td><a href="index.htm"><img style="width: 60px; height: 90px;" alt="home.gif" src="home.gif" border="0" height="90" hspace="0" width="60"></a></td>
<td><a href="3P.htm"><img style="width: 60px; height: 90px;" alt="3p.gif" src="3P.GIF" border="0" height="90" hspace="0" width="60"></a></td>
<td><a href="5P.htm"><img style="width: 60px; height: 90px;" alt="5p.gif" src="5P.GIF" border="0" height="90" hspace="0" width="60"></a></td>
<td><a href="Documenti.htm"><img style="width: 60px; height: 90px;" alt="doc.gif" src="Doc.GIF" border="0" height="90" hspace="0" width="60"></a></td>
</tr>
</tbody>
</table>
<br>
</font></div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p><font color="#6699ff" face="ArtificeSSK" size="6"> </font> </p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<?php
// Messaggio in caso di errore
echo('
Impossibile inviare. Torna nella pagina precedente e prova ancora, grazie.</p>');
echo '</body>
</html>';
}
}
?>
Puoi scaricare il codice da qui
http://dropcanvas.com/f933q