Allora io ho creato in flash un form email formato da Nome cognome matricola email e telefono ora gli ho dato come codice :
stop();
pulsInvio.onRelease = function(){
var sendMail:LoadVars = new LoadVars();
sendMail._root.Nome = Nome.text;
sendMail.cognome = Cognome.text;
sendMail.matricola = Matricola.text;
sendMail.email = Email.text;
sendMail.telefono = Telefono.text;
sendMail.destinatario = 'gatenweb@hotmail.it';
sendMail.onLoad = function(success){
if(success){
Nome.text = '';
Cognome.text = '';
Matricola.text = '';
Email.text = '';
Telefono.text = '';
mcMsg.mcTxt.txtMsg.text = this.controllo;
mcMsg.play();
}
}
sendMail.sendAndLoad('email.php', sendMail, 'POST');
}
Ecco ora vorrei sapere se qua nel file email.php c'è un errore perchè io invioo manon va ecco
email.php
<?php
$nome = stripslashes($_POST['_root.Nome']);
$cognome = stripslashes($_POST['cognome']);
$matricola = stripslashes($_POST['matricola']);
$email = stripslashes($_POST['email']);
$telefono = stripslashes($_POST['telefono']);
$sms = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contatti</title>
</head>
<body style="margin:0px;">
<table cellpadding="0" cellspacing="0" style="height:100%;width:500px;">
<tr>
<td style="height:100%;padding:20px;vertical-align:top;">
<table>
<tr><td colspan="2">
[img]Url della tua immagine personalizzata[/img]
</td>
</tr>
<tr><td width="110">Nome:</td>
<td width="300">'.$nome.'</td></tr>
<tr>
<td>Cognome:</td>
<td>'.$cognome.'</td></tr>
<tr>
<td>Matricola:</td>
<td>'.$matricola.'</td></tr>
<tr>
<td>Telefono:</td>
<td>'.$telefono.'</td></tr>
<tr>
<td>Richiesta:</td>
<td>'.$email.'</td></tr>
</table></td></tr>
</table>
</body>
</html>';
$headers = "From: $nome $cognome <$mittente>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
if(mail($_POST['destinatario'], $oggetto, $sms, $headers)){
echo '&controllo=invio avvenuto con successo.';
}
else{
echo '&controllo=errore: e-mail non inviata.';
}
?>
Aspe risp grazie