este es el codigo del .fla todo el codigo esta ubicado en el primer fotograma (y el boton enviar solo tiene la funcion
enviar();)
Código :
enviar = function () {
if (Nombre.text.length && Email.length && Telefono.length && Comentarios.length && Opinion.length) {
if (Email.text.indexOf("@") != -1 && Email.text.indexOf(".") != -1) {
form_lv = new LoadVars();
form_lv.nombre = Nombre.text;
form_lv.mail = Email.text;
form_lv.telefono = Telefono.text;
form_lv.opinion = Opinion.text;
form_lv.comentario = Comentarios.text;
form_lv.sendAndLoad("http://miderreccion/send.php", form_lv, "POST");
EmailStatus.text = "Enviando Mensaje..";
Nombre.text = "";
Email.text = "";
Telefono.text = "";
Comentarios.text = "";
Opinion.text = "";
form_lv.onLoad = function() {
if (this.estatus == "ok") {
textos.text = "Mensaje Enviado...";
Nombre.text = "";
Email.text = "";
Telefono.text = "";
Comentarios.text = "";
Opinion.text = "";
} else {
textos.text = "Error de Envio";
}
};
} else {
textos.text = "Correo Invalido";
}
} else {
textos.text = "Dato Necesario";
textos.text = "Dato Necesario";
textos.text = "Dato Necesario";
textos.text = "Dato Necesario";
textos.text = "Dato Necesario";
}
};y este es el codigo del PHP:
Código :
<?php
if(isset($_POST["nombre"]) && isset($_POST["mail"]) isset($_POST["telefono"]) isset($_POST["opinion"]) isset($_POST["comentario"]) ){
$fecha = date("d-M-y H:i");
$mymail = "[email protected]";
$subject = "Desde el Sitio DE PRUEVA";
$contenido = $_POST["nombre"]." Escribio :\n";
$contenido .= $_POST["comentario"]."\n\n";
$contenido .= "el mensaje se escribio el ".$fecha;
$header = "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"]."\n";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-Type: text/plain";
mail($mymail, $subject, utf8_decode($contenido) ,$header);
echo "&estatus=ok&";
}
?>espero que me respondan