Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/11/2009, 13:53
Avatar de DjDance
DjDance
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: Santiago de Chile
Mensajes: 775
Antigüedad: 17 años, 8 meses
Puntos: 80
Problema con Contacto Flash + php !!

Hola chicos !!

tengo un problemita con un contacto en flash + php !!
La cosa es que le agregué un campo con el teléfono pero el php no me funciona y la verdad no sé como solucionar esto ... quizas para muchos es muy simple pero no me manejo en php !!

Este es el Action Script de mi flash

Código:
enviar = function ()
{
    if (nombre_txt.text.length && email_txt.length && titulo_txt.length && fono_txt.length && mensaje_txt.length)
    {
        if (email_txt.text.indexOf("@") != -1 && email_txt.text.indexOf(".") != -1)
        {
            form_lv = new LoadVars();
            form_lv.nombre = nombre_txt.text;
            form_lv.mail = email_txt.text;
            form_lv.titulo = titulo_txt.text;
            form_lv.fono_txt = fono_txt.text;
            form_lv.mensaje = mensaje_txt.text;
            form_lv.sendAndLoad("http://www.company.com/send.php", form_lv, "POST");
            mensaje_txt.text = "Enviando Mensaje..";
            nombre_txt.text = "";
            email_txt.text = "";
            titulo_txt.text = "";
			fono_txt.text = "";
            form_lv.onLoad = function ()
            {
                trace ("LLEGO");
                if (this.estatus == "ok")
                {
                    mensaje_txt.text = "Su Mensaje A Sido Enviado...";
                    nombre_txt.text = "";
                    email_txt.text = "";
                    titulo_txt.text = "";
					fono_txt.text = "";
                }
                else
                {
                    mensaje_txt.text = "Problemas con el servidor\nIntentelo Nuevamente Porfavor";
                } // end else if
            };
        }
        else
        {
            email_txt.text = "Correo Invalido";
        } // end else if
    }
    else
    {
        email_txt.text = "Dato Necesario";
        nombre_txt.text = "Dato Necesario";
        titulo_txt.text = "Dato Necesario";
        mensaje_txt.text = "Dato Necesario";
		fono_txt.text = "Dato Necesario";
    } // end else if
};
borrar = function ()
{
    nombre_txt.text = "";
    email_txt.text = "";
    mensaje_txt.text = "";
    titulo_txt.text = "";
	fono_txt.text = "";
};
enviar_btn.onRelease = enviar;
borrar_btn.onRelease = borrar;
y este es el código del php

Código PHP:
<?php
if(isset($_POST["nombre"]) && isset($_POST["titulo"]) && isset($_POST["mail"]) && isset($_POST["mensaje"]) ){
    
$fecha date("D-M-y H:i");
    
$mymail "[email protected]";
    
$subject "Desde el Sitio name company";
    
$contenido $HTTP_POST_VARS["nombre"]." Escribio :\n";
    
$contenido .= $HTTP_POST_VARS["mensaje"]."\n\n";
    
$contenido .= "el mensaje se escribio el ".$fecha;
    
$header "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"]."\n";
    
$header .= "X-Mailer:PHP/".phpversion()."\n";
    
$header .= "Mime-Version: 1.0\n";
    
$header .= "Content-Type: text/plain";
    
mail($mymail$subjectutf8_decode($contenido) ,$header);
    echo 
"&estatus=ok&";
}
?>
intente agregar un isset($_POST["fono"]) pero no responde y no se como hacerlo para que funcione.

alguien me puede echar una manito please ??
__________________
My Music xD
http://soundcloud.com/dj-dance-1