giusto per magari far capire o ragionare di + chi se ne intende posto anche un altro formmail in flash diverso da quello precedente.
Anche questo funziona tranne il problema del multiriga nel campo messaggio dato con l'invio
CODICE PHP
<?php
$nome = stripslashes($_POST['nome']);
$cognome = stripslashes($_POST['cognome']);
$mittente = stripslashes($_POST['mittente']);
$richiesta = stripslashes($_POST['richiesta']);
$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>E-mail:</td>
<td>'.$mittente.'</td></tr>
<tr>
<td>Richiesta:</td>
<td>'.$richiesta.'</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.';
}
?>
CODICE ACTION SCRIPT
stop();
pulsInvio.onRelease = function(){
var sendMail:LoadVars = new LoadVars();
sendMail.nome = Nome.text;
sendMail.cognome = Cognome.text;
sendMail.mittente = Email.text;
sendMail.richiesta = Richiesta.text;
sendMail.destinatario = 'MIAMAIL@MAIL.it';
sendMail.onLoad = function(success){
if(success){
Nome.text = '';
Cognome.text = '';
Email.text = '';
Richiesta.text = '';
mcMsg.mcTxt.txtMsg.text = this.controllo;
mcMsg.play();
}
}
sendMail.sendAndLoad('http://www.MIOSITO.it/email.php', sendMail, 'POST');
}
Volendo potrei postarvi anche altri esempi diversi ma il risultato non cambia purtroppo.
Potrebbe essere un problema di interazione flash php a sto punto?

Rispondi quotando