Foros del Web » Creando para Internet » Flash y Actionscript »

Flash y PHP... Me trae de cabeza...

Estas en el tema de Flash y PHP... Me trae de cabeza... en el foro de Flash y Actionscript en Foros del Web. Saludos... Estoy de cabeza con un formulario hecho en Flash... He seguido los pasos que se muestran en "MaestrosdelWeb" y creo no haber fallado en ...
  #1 (permalink)  
Antiguo 09/10/2004, 03:21
Avatar de andrewp  
Fecha de Ingreso: agosto-2003
Ubicación: Barcelona
Mensajes: 1.160
Antigüedad: 20 años, 7 meses
Puntos: 5
Flash y PHP... Me trae de cabeza...

Saludos...

Estoy de cabeza con un formulario hecho en Flash... He seguido los pasos que se muestran en "MaestrosdelWeb" y creo no haber fallado en nada. El archivo PHP está bien configurado, el servidor funciona sin problemas pero a la hora de enviar el correo me sale el error de "correo no enviado" que se configura en el mismo flash.

Este es el código:

Cita:
enviar = function () {
if (nombre.text.length && telefono.length && email.length && fecha.length && adultos.length) {
if (email.text.indexOf("@") != -1 && email.text.indexOf(".") != -1) {
form_lv = new LoadVars();
form_lv.empresa = empresa.text;
form_lv.nombre = nombre.text;
form_lv.telefono = telefono.text;
form_lv.fax = fax.text;
form_lv.fecha = fecha.text;
form_lv.adultos = adultos.text;
form_lv.ninos = ninos.text;
form_lv.comentarios = comentarios.text;
form_lv.sendAndLoad("http://www.myweb.com/send.php", form_lv, "POST");
comentarios.text = "Sending Message..";
empresa.text = "";
nombre.text = "";
email.text = "";
form_lv.onLoad = function() {
if (this.estatus == "ok") {
comentarios.text = "Your message has been sent succeful...";
empresa.text = "";
nombre.text = "";
email.text = "";
} else {
comentarios.text = "Message has not been sent,\nPlease try again...";
}
};
} else {
email.text = "Invalid E-mail, please try again";
}
} else {
email.text = "Obligatory Data";
nombre.text = "Obligatory Data";
telefono.text = "Obligatory Data";
fecha.text = "Obligatory Data";
adultos.text = "Obligatory Data";
}
};
borrar = function () {
empresa.text = " ";
nombre.text = " ";
telefono.text = " ";
fax.text = " ";
email.text = " ";
fecha.text = " ";
adultos.text = " ";
ninos.text = " ";
comentarios.text = " ";
};
bt_send.onRelease = enviar;
bt_reset.onRelease = borrar;
No sé si estoy en algún error o he puesto algunas variables dispares en algún sitio... Me podríais echar una mano?

Gracias!
__________________
Andrew :P
  #2 (permalink)  
Antiguo 09/10/2004, 04:40
 
Fecha de Ingreso: marzo-2004
Mensajes: 338
Antigüedad: 20 años, 1 mes
Puntos: 2
El codigo AS parece estar bien, podrias poner el php para verlo. Puedes decirnos cual es el nombre de tu web?
__________________
SiMpLiFiKa
http://www.manitasdelweb.com
  #3 (permalink)  
Antiguo 09/10/2004, 10:56
Avatar de keegan  
Fecha de Ingreso: septiembre-2004
Ubicación: Buenos Aires
Mensajes: 584
Antigüedad: 19 años, 7 meses
Puntos: 0
mira si quieres pudes entrar a www.romiglia.com bajate los componentes escenciales que ofrece esta tipo de argentina, instalalos y luego mira el formulario que ya te viene con el php soolo tienes que cambiar unas cosillas que ya estan con sus intrucciones
  #4 (permalink)  
Antiguo 09/10/2004, 11:12
Avatar de andrewp  
Fecha de Ingreso: agosto-2003
Ubicación: Barcelona
Mensajes: 1.160
Antigüedad: 20 años, 7 meses
Puntos: 5
Código de PHP...

[QUOTE]<?php
if(isset($_POST["nombre"]) && isset($_POST["telefono"]) && isset($_POST["email"]) && isset($_POST["fecha"]) && isset($_POST["adultos"]) ){
$fecha = date("d-M-y H:i");
$mymail = "[email protected]";
$subject = "Reservation from.. =)";
$contenido = $nombre." Wrote :\n";
$contenido .= $mensaje."\n\n";
$contenido .= "Message wrote ".$fecha;
$header = "From:".$mail."\nReply-To:".$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&";
}
?>[/QUOTE

Gracias por vuestra ayuda!....
__________________
Andrew :P
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:31.