Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/04/2007, 17:48
lau84
 
Fecha de Ingreso: junio-2005
Ubicación: barcelona
Mensajes: 62
Antigüedad: 18 años, 10 meses
Puntos: 0
Re: Problemas con mi formulario de contacto

bueno...en vista del exito he seguido investigando y haciendo cambios pero ni con esas funciona. En el php actual he puesto:

<?php
if(!empty($HTTP_POST_VARS['nombre_txt']) || !empty($HTTP_POST_VARS['email_txt']) || !empty($HTTP_POST_VARS['direccion_txt']) || !empty($HTTP_POST_VARS['postal_txt'])|| !empty($HTTP_POST_VARS['ciudad_txt'])) || !empty($HTTP_POST_VARS['provincia_txt']) || !empty($HTTP_POST_VARS['pais_txt']) || !empty($HTTP_POST_VARS['telefono_txt']) || !empty($HTTP_POST_VARS['movil_txt']) || !empty($HTTP_POST_VARS['fax_txt']) || !empty($HTTP_POST_VARS['mensaje_txt']))
{
$fecha = date("D-M_y H:i");
$to = "[email protected]";
$subject = "Consulta desde tusitio.com";
$body .= "\n\n---------------------------\n";
$body .= "FORMULARIO DE CONSULTA" . "\n";
$body .= "COMIN 360" . "\n";
$body .= "-----------------------------------------------------------" . "\n";
$body .= "\n";
$body .= "Enviado por: " . $HTTP_POST_VARS["nombre_txt"] . "\n";
$body .= "Email: " . $HTTP_POST_VARS["email_txt"] . "\n";
$body .= "Direccion: " . $HTTP_POST_VARS["direccion_txt"] . "\n";
$body .= "Codigo postal: " . $HTTP_POST_VARS["postal_txt"] . "\n";
$body .= "Ciudad: " . $HTTP_POST_VARS["ciudad_txt"] . "\n";
$body .= "Provincia: " . $HTTP_POST_VARS["provincia_txt"] . "\n";
$body .= "Pais: " . $HTTP_POST_VARS["pais_txt"] . "\n";
$body .= "Telefono: " . $HTTP_POST_VARS["telefono_txt"] . "\n";
$body .= "Movil: " . $HTTP_POST_VARS["movil_txt"] . "\n";
$body .= "Fax: " . $HTTP_POST_VARS["fax_txt"] . "\n";
$body .= "Mensaje: " . $HTTP_POST_VARS["mensaje_txt"] . "\n";
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: " . $HTTP_POST_VARS['nombre_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">\n";
$header = "From: " . $HTTP_POST_VARS['nombre_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['nombre_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>


Y en el fla, hay dos capas, cada una con un fotograma, en una he puesto un stop y en la otra...
Boton enviar:

on (release)
{
if ((nombre_txt == "") or (email_txt == "") or (direccion_txt == "") or (postal_txt == "") or (ciudad_txt == "") or (provincia_txt == "") or (pais_txt == "") or (telefono_txt == "") or (movil_txt == "") or (fax_txt == "") or (mensaje_txt == ""))
{
respuesta = "Hay campos obligatorios sin rellenar";
}
else
{
loadVariablesNum("correo.php", 0, "POST");
respuesta = "El formulario se ha sido enviado.";
}
}


Boton borrar:

on (release)
{
nombre_txt = "";
email_txt = "";
direccion_txt = "";
postal_txt = "";
ciudad_txt = "";
provincia_txt = "";
pais_txt = "";
telefono_txt = "";
movil_txt = "";
fax_txt = "";
mensaje_txt = "";
respuesta_txt = "";
}


Alguien me puede ayudar!!?? por favor
Gracias!