Chiedo ad altri e più esperti utenti un aiuto... grazie.
Edit: Scusa Sandy, tu potresti aiutarmi per quanto riguarda il form dell'invio e-mail. non arrivano a destinazione.
come vedi la pagina in questione è questa, ho inserito il sito in una cartella per provarlo(forse non invia per quello ora provo a metterlo nella cartella principale, se non trovi altri miei commenti significa che NON ha funzionato):
http://simpatiko.altervista.org/mdr/..._adozioni.html
Il codice del form è questo:
Codice HTML:
<div id="imCel8_00">
<div id="imCel8_00_Cont">
<div id="imObj8_00">
<script type="text/javascript"><!--
function ChkFrm_8_00(oForm)
{
sAlert1 = "Valore mancante per il campo ";
sAlert2 = "Indirizzo e-mail non valido per il campo ";
sAlert3 = "La domanda di controllo non è valida ";
if (!imCheckForm(0,"Itm_8_00_1",sAlert1 + "\'Nome\'",0,"")) return false;
if (!imCheckForm(0,"Itm_8_00_2",sAlert1 + "\'Cognome\'",0,"")) return false;
if (!imCheckForm(1,"Itm_8_00_4",sAlert2 + "\'email\'",0,"")) return false;
if (!imCheckForm(0,"Itm_8_00_5",sAlert1 + "\'oggetto\'",0,"")) return false;
if (!imCheckForm(0,"Itm_8_00_6",sAlert1 + "\'messaggio\'",0,"")) return false;
if (!imCheckForm(6,"Itm_8_00","La parola di controllo inserita non è corretta!",0,"")) { imShowCaptcha("Itm_8_00"); return false; }
return (true);
}
//--></script>
<form action="files/mail_p016_8_00.php" method="post" onsubmit="return ChkFrm_8_00(this)">
<fieldset>
<div class="imLineProp">
<label for="Itm_8_00_1">
Nome*:<br />
<input class="imInput imInput_0" type="text" name="Itm_8_00_1" id="Itm_8_00_1" onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')" />
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_2">
Cognome*:<br />
<input class="imInput imInput_0" type="text" name="Itm_8_00_2" id="Itm_8_00_2" onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')" />
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_3">
Telefono:<br />
<input class="imInput imInput_0" type="text" name="Itm_8_00_3" id="Itm_8_00_3" onkeypress="return imKeyFilter(1,event);" onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')" />
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_4">
email*:<br />
<input class="imInput imInput_0" type="text" name="Itm_8_00_4" id="Itm_8_00_4" onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')" />
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_5">
oggetto*:<br />
<input class="imInput imInput_0" type="text" name="Itm_8_00_5" id="Itm_8_00_5" onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')" />
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_6">
messaggio*:<br />
<textarea class="imInput imInput_0" name="Itm_8_00_6" id="Itm_8_00_6" rows="5" cols="15" style="height: 75px; " onfocus="imFocus(this,'#404040')" onblur="imFocus(this,'#2C2FA9')"></textarea>
</label>
</div>
<div class="imLineProp">
<label for="Itm_8_00_cpv">
Digita i caratteri visualizzati nell'immagine sottostante*:<br /><div class="imAlign_center"><iframe id="Itm_8_00_cpn" src="" frameborder="0" marginwidth="0" marginheight="0" width="120" height="24" scrolling="no" style="margin: 4px; border: 1px solid #BBBBBB"></iframe><br /><input class="imInput" type="text" name="Itm_8_00_cpv" id="Itm_8_00_cpv" value="" maxlength="5" style="width: 120px; margin-bottom: 4px;" />
<input type="hidden" name="Itm_8_00_cpf" id="Itm_8_00_cpf" value="" />
<script type="text/javascript">imShowCaptcha("Itm_8_00");</script>
</div>
</label>
</div>
<div class="imAlign_center">
<input class="imFormButton" type="submit" value=" Invia " />
<input class="imFormButton" type="reset" value=" Reset " />
</div>
</fieldset>
</form>
</div>
</div>
</div>
e il file php dell'invio mail è questo, inserito in una cartella file:
Codice PHP:
<?php
//Check Captcha
include("../captcha/imkeys.php");
for ($i=0; $i<5; $i++)
if ($oCharList[substr($_POST["Itm_8_00_cpf"],$i,1)] != substr($_POST["Itm_8_00_cpv"], $i,1))
die("Error: Javascript must be enabled! (2)");
include "../res/imemail.inc.php";
//Form Data
$txtData = "";
$htmData = "";
$txtData .= "Nome: " . $_POST["Itm_8_00_1"] . "\r\n";
$htmData .= "<tr><td width=\"25%\"><b>Nome:</b></td><td>" . $_POST["Itm_8_00_1"] . "</td></tr>";
$txtData .= "Cognome: " . $_POST["Itm_8_00_2"] . "\r\n";
$htmData .= "<tr><td width=\"25%\" bgcolor=\"#EEEEEE\"><b>Cognome:</b></td><td bgcolor=\"#EEEEEE\">" . $_POST["Itm_8_00_2"] . "</td></tr>";
$txtData .= "Telefono: " . $_POST["Itm_8_00_3"] . "\r\n";
$htmData .= "<tr><td width=\"25%\"><b>Telefono:</b></td><td>" . $_POST["Itm_8_00_3"] . "</td></tr>";
$txtData .= "email: " . $_POST["Itm_8_00_4"] . "\r\n";
$htmData .= "<tr><td width=\"25%\" bgcolor=\"#EEEEEE\"><b>email:</b></td><td bgcolor=\"#EEEEEE\">" . $_POST["Itm_8_00_4"] . "</td></tr>";
$txtData .= "oggetto: " . $_POST["Itm_8_00_5"] . "\r\n";
$htmData .= "<tr><td width=\"25%\"><b>oggetto:</b></td><td>" . $_POST["Itm_8_00_5"] . "</td></tr>";
$txtData .= "messaggio: " . $_POST["Itm_8_00_6"] . "\r\n";
$htmData .= "<tr><td width=\"25%\" bgcolor=\"#EEEEEE\"><b>messaggio:</b></td><td bgcolor=\"#EEEEEE\">" . $_POST["Itm_8_00_6"] . "</td></tr>";
// Template
$htmHead = "<table width=\"90%\" border=\"0\" bgcolor=\"#FFFFFF\" cellpadding=\"4\" style=\"font: 11px Tahoma; color: #000000; border: 1px solid #BBBBBB;\">";
$htmFoot = "</table>";
//Send email to owner
$txtMsg = "";
$htmMsg = $htmHead . "<tr><td></td></tr>" . $htmFoot;
$oEmail = new imEMail("simpatiko71@libero.it","simpatiko71@libero.it","richiesta dal sito","iso-8859-1");
$oEmail->setText($txtMsg . "\r\n\r\n" . $txtData);
$oEmail->setHTML("<html><body bgcolor=\"#063A69\"><center>" . $htmMsg . "<br>" . $htmHead . $htmData . $htmFoot . "</center></body></html>");
$oEmail->send();
@header("Location: ../il_tuo_messaggio_e_stato_inviato.html");
?>
dove sbaglio?