Flash - Problemas on radio Button

 
Vista:

Problemas on radio Button

Publicado por Sergio GD (4 intervenciones) el 08/03/2009 03:16:21
Hola.

Tengo un form de contactenos en flash el cual esta aqui http://www.teofertamos.com/form_ok/ y envio todos los datos a mi correo, exepto este
-Preferred Method of Contact : o Telephone o mail o Either, la idea es que cuando seleccione alguno, pues q ese dato me llegue al correo, pero no es asi, y este q es parecido si llega
-Do you need Web Hosting: o Yes oNo, I have a host o No, I'llget my...
al seleccionar alguno de esto datos si llega, a qui les dej oel codigo que estoy trabajando.


Este es el codigo q tengo en flash:
-----------------------------------------------

import mx.controls.Alert;
enviar = function () {
if (nombres_txt.text.length && mail_txt.text.length && telefono_txt.text.length && ciudad_txt.text.length && web_url_txt.text.length && web_site_txt.text.length && project_txt.text.length && details_txt.text.length) {
if (mail_txt.text.indexOf("@") != -1 && email_txt.text.indexOf(".") != -1) {
form_lv = new LoadVars();
form_lv.nombres = nombres_txt.text;
form_lv.mail = mail_txt.text;
form_lv.telefono = telefono_txt.text;
form_lv.ciudad = ciudad_txt.text;
form_lv.web_url = web_url_txt.text;
form_lv.web_site = web_site_txt.text;
form_lv.web_hosting = web_hosting.RadioButton.label;
form_lv.project = project_txt.text;
form_lv.details = details_txt.text;
form_lv.contactar_cliente = contactar_cliente.RadioButton.label;
form_lv.sendAndLoad("send_RGP.php", form_lv, "POST");
servidor_txt.text = "Enviando Mensaje..";
nombres_txt.text = "";
mail_txt.text = "";
telefono_txt.text = "";
ciudad_txt.text = "";
web_url_txt.text = "";
web_site_txt.text = "";
project_txt.text = "";
details_txt.text = "";
form_lv.onLoad = function() {

if (this.estatus == "ok") {
//servidor_txt.text = "Tu mensaje fue enviado...";
Alert.show("Tu mensaje fue enviado...", "Exito");
nombres_txt.text = "";
mail_txt.text = "";
telefono_txt.text = "";
ciudad_txt.text = "";
web_url_txt.text = "";
web_site_txt.text = "";
project_txt.text = "";
details_txt.text = "";
servidor_txt.text = "";
} else {
//servidor_txt.text = "Problemas con el servidor.";
Alert.show("Problemas con el servidor", "Error");
}
};
} else {
//mail_txt.text = "Correo Invalido";
Alert.show("Correo invalido");
}
} else {
nombres_txt.text = "";
mail_txt.text = "";
telefono_txt.text = "";
ciudad_txt.text = "";
web_url_txt.text = "";
web_site_txt.text = "";
project_txt.text = "";
details_txt.text = "";
servidor_txt.text = "";
}
};
borrar = function () {
nombres_txt.text = "";
mail_txt.text = "";
telefono_txt.text = "";
ciudad_txt.text = "";
web_url_txt.text = "";
web_site_txt.text = "";
project_txt.text = "";
details_txt.text = "";
servidor_txt.text = "";
};
enviar_btn.onRelease = enviar;
borrar_btn.onRelease = borrar;

Codigo php (send_RGP.php):
----------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>

<body>
<?php
$nombres = $_POST['nombres'];
$mail = $_POST['mail'];
$telefono = $_POST['telefono'];
$ciudad = $_POST['ciudad'];
$web_url = $_POST['web_url'];
$web_site = $_POST['web_site'];
$web_hosting = $_POST['web_hosting'];
$project = $_POST['project'];
$details = $_POST['details'];
$contactar_cliente = $_POST['contactar_cliente'];

$header = 'From: ' . $mail . " ";
$header .= "X-Mailer: PHP/" . phpversion() . " ";
$header .= "Mime-Version: 1.0 ";
$header .= "Content-Type: text/plain";

$mensaje = "Este mensaje fue enviado por " . $nombres . " ";
$mensaje .= "Su e-mail es: " . $mail . " ";
$mensaje .= "Telefono: " . $telefono . " ";
$mensaje .= "Ciudad: " . $ciudad . " ";
$mensaje .= "Your Website URL: " . $web_url . " ";
$mensaje .= "Purpose of Website: " . $web_site . " ";
$mensaje .= "---------------------- ";
$mensaje .= "Website Service Needed ";
$mensaje .= "---------------------- ";
$mensaje .= "Do you need Web Hosting:". $web_hosting ." ";
$mensaje .= "Please estimate your project Budget: " . $project . " ";
$mensaje .= "Please enter details about your website service needs: " . $details . " ";
$mensaje .= "Preferred Method of Contact: " . $contactar_cliente . " ";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = '[email protected]';
$asunto = 'Contacto desde RGP Solutions';

mail($para, $asunto, utf8_decode($mensaje), $header);

echo '&estatus=ok&';

?>

</body>
</html>

Les agradeceria mucho si me colaboran muchas gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Problemas con radio Button

Publicado por Sergio GD (4 intervenciones) el 08/03/2009 03:19:22
soy yo sergio GD corrijo el titulo mi problema es "Problemas con radio Button"
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Problemas on radio Button

Publicado por juan (1 intervención) el 13/10/2009 08:54:28
me podrias enviar tu ejemplo para verlo???
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar