<?
$para="[email protected]";
$asunto="Suscribirse";
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "From: $email";
$mensaje1 = '
<html>
<head>
<title></title>
</head>
<body>
<p font=arial size=2>
<b>NUEVA SUSCRIPCION: ';
$mensaje1 .= $nombre2;
$mensaje1 .= " - Email: ";
$mensaje1 .= $email;
$mensaje1 .= ", se ha suscripto a la pagina";
$mensaje1 .= "</body></html>";
$okProceso= mail($para,$asunto,$mensaje1,$header);
if($okProceso)
{echo" Email enviado ";}
else
{echo" Fallo al enviar";}
?>
-----------------
este es el codigo del flash, y puse en flash trace(nombre2) o trace(email) antes de enviar las variables y me sale bien la informacion que complete en los campos, no se por que no llegan al archivo php :S
----------------
nombre2 = "";
email = "";
var a = "";
var b = "";
nombre.onSetFocus = function() {
nombre.border = true;
nombre.borderColor = "0xCCFFFF";
};
nombre.onKillFocus = function() {
nombre.border = false;
};
xmail.onSetFocus = function() {
xmail.border = true;
xmail.borderColor = "0xCCFFFF";
};
xmail.onKillFocus = function() {
xmail.border = false;
};
enviar1 = function () {
enviar1 = new LoadVars();
enviar1.email = xmail.text
enviar1.nombre2 = nombre.text;
enviar1.sendAndLoad("participa2.php", enviar1, "POST");
enviar1.onLoad = function(success) {
if (success == true) {
xresp.text = this.xresp;
}
};
};