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

Que problemas puede tener esto?

Estas en el tema de Que problemas puede tener esto? en el foro de Flash y Actionscript en Foros del Web. Hola que tal, estoy haciendo un formulario en flash y php y no llega al mail, por favor esto me desespera ya que no se ...
  #1 (permalink)  
Antiguo 19/10/2009, 23:30
 
Fecha de Ingreso: noviembre-2008
Mensajes: 121
Antigüedad: 15 años, 5 meses
Puntos: 9
Que problemas puede tener esto?

Hola que tal, estoy haciendo un formulario en flash y php y no llega al mail, por favor esto me desespera ya que no se muchjo de php, el codigo lo baje de un tutorial y lo intente modificar pero no envia el emal.

este es el codigo flash

Clear.onRelease = function() {
Nombre.text = "";
Direccion.text = "";
Distrito.text = "";
edad.text = "";
profesion.text = "";
Email.text = "";
telefono.text = "";
celular.text = "";
fax.text = "";
empresa.text = "";
cargo.text = "";
web.text = "";
ruc.text = "";
mailotro.text = "";
operacion.text = "";
fechadepo.text = "";
Medio.setSelectedIndex(0);
}

Submit.onRelease = function () {
var e_lv:LoadVars = new LoadVars();
var g_lv:LoadVars = new LoadVars();
e_lv.Nombre = Nombre.text;
e_lv.Direccion = Direccion.text;
e_lv.Distrito = Distrito.text;
e_lv.edad = edad.text;
e_lv.profesion = profesion.text;
e_lv.telefono = telefono.text;
e_lv.celular = celular.text;
e_lv.fax = fax.text;
e_lv.empresa = empresa.text;
e_lv.Email = Email.text;
e_lv.cargo = cargo.text;
e_lv.web = web.text;
e_lv.ruc = ruc.text;
e_lv.mailotro = mailotro.text;
e_lv.operacion = operacion.text;
e_lv.fechadepo = fechadepo.text;
e_lv.Medio = Medio.selectedIndex;
if (Nombre.text eq "") {
gotoAndStop(3);
} else if (Direccion.text eq "") {
gotoAndStop(4);
} else if (Distrito.text eq "") {
gotoAndStop(5);
} else if (Email.text eq "") {
gotoAndStop(6);
} else if (Email.text.indexOf("@") == -1 && Email.text.indexOf(".") == -1) {
gotoAndStop(7);
} else if (edad.text eq "") {
gotoAndStop(9);
} else if (profesion.text eq "") {
gotoAndStop(10)
} else if (telefono.text eq "") {
gotoAndStop(11);
} else if (celular.text eq "") {
gotoAndStop(12);
} else if (empresa.text eq "") {
gotoAndStop(13);
} else if (cargo.text eq "") {
gotoAndStop(14);
} else if (operacion.text eq "") {
gotoAndStop(15);
} else if (fechadepo.text eq "") {
gotoAndStop(16);
} else {
e_lv.sendAndLoad("contact_form.php", g_lv, "POST");
gotoAndStop(2);
}
}

------ y este es el php ---------

<?php

$toaddress = "[email protected]";

// Subjects
$subject = "Inscripcion Seminario";

if (empty($_POST['Medio'])) {
$Medio = 'Mail';
} elseif ($_POST['Medio'] == '1') {
$Medio = 'Pagina Web';
} elseif ($_POST['Medio'] == '2') {
$Medio = 'Recomendacion';
} elseif ($_POST['Medio'] == '3') {
$Medio = 'Afiches';
} elseif ($_POST['Medio'] == '4') {
$Medio = 'Informacion Impresa';
} elseif ($_POST['Medio'] == '5') {
$Medio = 'Otros';
}

// Sender Information
$Nombre = $_POST['Nombre'];
$Email = $_POST['Email'];
$Direccion = $_POST['Direccion'];
$Distrito = $_POST['Distrito'];
$Edad = $_POST['edad'];
$Profesion = $_POST['profesion'];
$Celular= $_POST['celular'];
$Fax = $_POST['fax'];
$Empresa = $_POST['empresa'];
$Cargo = $_POST['cargo'];
$Web = $_POST['web'];
$Ruc = $_POST['ruc'];
$Recomienda = $_POST['mailotro'];
$OperacionNum = $_POST['operacion'];
$FechaDeposito = $_POST['fechadepo'];

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Please do not replace //
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

// Content
$Email = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
."<html dir=\"ltr\" lang=\"tr\">\n"
."<head>\n"
."<title>".$subject."</title>\n"
."<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\" />\n"
."<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\" />\n"
."<style type=\"text/css\" media=\"all\">\n"
."body\n"
."{\n"
." color: #333333;\n"
." font-size: 12px;\n"
." font-family: Century Gothic, Trebuchet MS, Tahoma, verdana, arial, Helvetica, sans-serif;\n"
." margin: 2ex;\n"
." text-align: left;\n"
." background-color: #FFFFFF;\n"
."}\n"
."\n"
."a:link, a:visited\n"
."{\n"
." color: #FF6600;\n"
." text-decoration: none;\n"
." font-weight: bold;\n"
." font-size: 12px;\n"
." font-family: Century Gothic, Trebuchet MS, Tahoma, verdana, arial, Helvetica, sans-serif;\n"
."}\n"
."\n"
."a:hover\n"
."{\n"
." color: #336699;\n"
." text-decoration: none;\n"
." font-weight: bold;\n"
." font-size: 12px;\n"
." font-family: Century Gothic, Trebuchet MS, Tahoma, verdana, arial, Helvetica, sans-serif;\n"
."}\n"
."\n"
."</style>\n"
."</head>\n"
."<body>\n"
."\n"
."".$message."\n"
."\n"
."</BODY>\n"
."</HTML>\n";

// E-mail Headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: Eggdrop Inc.\n";
$headers .= "From: \"".$Nombre."\" <".$fromaddress.">\n";

// Send it.
@mail($Direccion, $Distrito, $Edad, $Profesion, $Celular, $Medio, $Celular, $Fax, $Empresa, $Cargo,$Web, $Ruc, $Recomienda, $OperacionNum, $FechaDeposito, $Email );


?>

ya subi la web a un servidor, que es pagado, junto puse el codigo php y no llegan el contenido del formulario al correo, ayuda porfavor es urgente.
  #2 (permalink)  
Antiguo 20/10/2009, 09:03
Avatar de Lynxcraft  
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: Que problemas puede tener esto?

primero ten en cuenta que si lo estas probando en modo local no te va a funcionar tienes que subirlo a un servidor
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft
  #3 (permalink)  
Antiguo 20/10/2009, 10:44
 
Fecha de Ingreso: noviembre-2008
Mensajes: 121
Antigüedad: 15 años, 5 meses
Puntos: 9
Respuesta: Que problemas puede tener esto?

Hola que tal gracias por la respuesta, pero ya esta subido a un servidor,
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 04:35.