hola el segundo código (es el mejor para mi ) al eviar variables al php tienes que revivirlas así
Código PHP:
<?php
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$puntaje = $HTTP_POST_VARS['puntaje'];
$chica = $HTTP_POST_VARS['chica'];
$pass = $HTTP_POST_VARS['pass'];
$header = 'From: ' . $email . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje .= "Nombre jugadora/o : " . $name . " \r\n";
$mensaje .= "Email : " . $mail . " \r\n";
$mensaje .= "puntaje : " . $puntaje . " \r\n";
$mensaje .= "Nombre chica cumpleaños : " . $chica . " \r\n";
$mensaje .= "pass : " . $pass . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time();
$para = '[email protected]';
$asunto = 'Juego - ' .$chica.' - ' .$pass. ;
mail($para, $asunto, utf8_decode($mensaje), $header);
echo '&estatus=ok&';
?>
en el flash tienes poner esto
Código:
on (release) {
form_lv = new LoadVars();
form_lv.name = name_txt.text;
form_lv.email = email_txt.text;
form_lv.pass = pass_txt.text;
form_lv.chica = chica_txt.text;
form_lv.puntaje = puntaje.text;
form_lv.sendAndLoad("recibi.php",form_lv,"POST") ;
form_lv.onLoad = function(){
if(this.estatus == 'ok'){
this.servidor_txt.text = 'Puntaje enviado...';
}
}
}