Ciao visto che ho il tuo stesso problema per caso hai risolto? :master: :master:
Se si potresti indicarmi come ?
Sai anche indicarmi come fare per mettere i campi del form come obbligatori? il codice del mio php è:
e il codice del flash è:Codice PHP:<?php
$nome = stripslashes($_POST['nome']);
$cognome = stripslashes($_POST['cognome']);
$mittente = stripslashes($_POST['mittente']);
$richiesta = stripslashes($_POST['richiesta']);
$oggetto = "Richiesta Preventivo dal sito";
$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>Richiesta preventivo</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]img/testa_prev.gif[/img]
</td>
</tr>
<tr><td width="110">[b]Nome:[/b]</td>
<td width="300">'.$nome.'</td></tr>
<tr>
<td>[b]Cognome:[/b]</td>
<td>'.$cognome.'</td></tr>
<tr>
<td>[b]E-mail:[/b]</td>
<td>'.$mittente.'</td></tr>
<tr>
<td>[b]Richiesta:[/b]</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 "ris=1";
}
else
{
echo "ris=2";
}
?>
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 = 'info@info.it';
sendMail.onLoad = function(success){
if(success){
Nome.text = '';
Cognome.text = '';
Email.text = '';
Richiesta.text = '';
}
}
sendMail.sendAndLoad(email.php', sendMail, 'POST');
if (this.ris == "1")
{txt7 = "Email inviata correttamente - Sarai ricontattato al più presto"}
else (this.ris == "2")
{txt7 = "Email non inviata - Riprova"}
}
Grazie mille![]()

Rispondi quotando