Scusate ma io ho creato un form in flash ho il php e il flash chiaramente...ma il problema e che quando il messaggio deve essere inviato mi invia silamente 3 campi e non gli altri perke????
non capisco per esempio ho
nick
pass
nome
congome
citta
mi invia solamente nick pass e nome kome faccio a risolvere?
il codice php è il seguente:
<?php
$Nickname = stripslashes($_POST['nickname']);
$Password = stripslashes($_POST['password']);
$Nome = stripslashes($_POST['nome']);
$Cognome = stripslashes($_POST['cognome']);
$Città = stripslashes($_POST['città']);
$Email = stripslashes($_POST['email']);
$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">Nickname:</td>
<td width="300">'.$nickname.'</td></tr>
<tr>
<td>Password:</td>
<td>'.$password.'</td></tr>
<tr>
<td>Città:</td>
<td>'.$città.'</td></tr>
<tr>
<td>Nome:</td>
<td>'.$nome.'</td></tr>
<tr>
<td>Cognome:</td>
<td>'.$cognome.'</td></tr>
<tr>
<td>Email:</td>
<td>'.$email.'</td></tr>
</table></td></tr>
</table>
</body>
</html>';
$headers = "From: $nickname $password $nome $cognome $città $email <$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.';
}
?>
Quello in Flash :
var sendMail:LoadVars = new LoadVars();
sendMail.nome = Nickname.text;
sendMail.cognome = Password.text;
sendMail.mittente = Nome.text;
sendMail.richiesta = Cognome.text;
sendMail.città = Città.text;
sendMail.email = Email.text;
sendMail.destinatario = 'simoncena@hotmail.it';
sendMail.onLoad = function(success){
if(success){
Nickname.text = '';
Password.text = '';
Nome.text = '';
Cognome.text = '';
Città.text = '';
Email.text = '';
mcMsg.mcTxt.txtMsg.text = this.controllo;
mcMsg.play();
}
}
sendMail.sendAndLoad('http://www.devil.altervista.org/email.php', sendMail, 'POST');
}
Aiutooooooooooooooooo![]()
![]()
![]()

Rispondi quotando

