Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2008, 06:38
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 18 años, 10 meses
Puntos: 51
Respuesta: formulario email con combobox

hola tienes que recibir las variables en el php así

Código PHP:
<?php
$name 
= $HTTP_POST_VARS['name'];
$Email = $HTTP_POST_VARS['Email'];
$Telefono = $HTTP_POST_VARS['Telefono'];
$Direccion = $HTTP_POST_VARS['Direccion'];
$Ciudad = $HTTP_POST_VARS['Ciudad'];
$Pais = $HTTP_POST_VARS['Pais'];
$Asunto = $HTTP_POST_VARS['Asunto'];
$Comentario = $HTTP_POST_VARS['Comentario'];

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

$mensaje = "Este mensaje fue enviado por " . $name . ", desde " . $Pais . " \r\n";
$mensaje .= "Su e-mail es: " . $Email . " \r\n";
$mensaje .= "Asunto: " . $HTTP_POST_VARS['Asunto'] . " \r\n";
$mensaje .= "Telefono: " . $HTTP_POST_VARS['Telefono'] . " \r\n";
$mensaje .= "Direccion: " . $HTTP_POST_VARS['Direccion'] . " \r\n";
$mensaje .= "Ciudad: " . $HTTP_POST_VARS['Ciudad'] . " \r\n";
$mensaje .= "Comentario: " . $HTTP_POST_VARS['Comentario'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = 'miemail';
$asunto = 'Contacto WEB';
$server= 'mail.misitio.com';
$username= 'miservidor';
$password= 'miclave';

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

echo 
'&estatus=ok&';

?>
el flas tambien tiene errore <XD


Código PHP:
function doSubmit() {
userData = new LoadVars();
userData.name = name;
userData.Email = Email;
userData.Telefono = Telefono;
userData.Direccion = Direccion;
userData.Ciudad = Ciudad;
userData.Pais = Pais;
userData.Asunto = Asunto.getValue();
userData.Comentario = Comentario;
userData.sendAndLoad("send.php", userData, "POST"); // nota con la dir es preferible que el archivo send.php este en el mismo dirtectorio donde esta la pagina que muestra el swf
userData.onLoad = function() {

        if (
this.estatus == "ok") {
            
trace("Puntaje enviado...");
        } else {
            
trace("ERROR...");
        }
} 
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft

Última edición por Lynxcraft; 14/07/2008 a las 06:50