El problema es que no me toma los datos del formulario, adjunto codigo as
enviar = function () {
trace("HOLA "+correo.text.length);
if (correo.text.length && persona.text.length && descripcion.text.length && empresa.text.length && telefono.text.length) {
trace("todo informado");
if (correo.text.indexOf("@") != -1 && correo.text.indexOf(".") != -1) {
trace("mail correcto");
form_lv = new LoadVars();
form_lv.persona = persona.text;
form_lv.correo = correo.text;
form_lv.empresa = empresa.text;
form_lv.descripcion = descripcion.text;
form_lv.telefono = telefono.text;
form_lv.sendAndLoad("http://www.puerma.es/mail.php", form_lv, "POST");
empresa.text = "Enviando Mensaje..";
persona.text = "";
correo.text = "";
descripcion.text = "";
telefono.text = "";
form_lv.onLoad = function() {
if (this.estatus == "ok") {
descripcion.text = "Tu mensaje fue enviado...";
persona.text = "";
correo.text = "";
empresa.text = "";
telefono.text = "";
} else {
descripcion.text = "Problemas con el servidor\nIntentalo de Nuevo";
}
};
} else {
correo.text = "Correo Invalido";
}
} else {
correo.text = "Dato Necesario";
persona.text = "Dato Necesario";
descripcion.text = "Dato Necesario";
empresa.text = "Dato Necesario";
telefono.text = "Dato Necesario";
}
};
borrar = function () {
persona.text = "";
correo.text = "";
empresa.text = "";
descripcion.text = "";
telefono.text = "";
};
enviar_btn.onRelease = enviar;
borrar_btn.onRelease = borrar;
stop();
Si necesitais el fla lo puedo subir.
Gracias.
