
26-07-2009, 02:38
|
 |
Bosta

|
|
Registrado: Nov 2005
Posts: 670
FoquiMoney: 1.743
Gracias dadas: 45
Agradecido 4 vez en 4 posts
|
|
URGENTE ! Formulario Php No Llega Completo
eso. tengo un formulario php que funcionaba perfecto con 3 datos que tenia, nombre, email y el mensaje.
le agregue al html 3 entradas mas, direccion,residencia, telefono., las cuales agregue tambien al php.
el problema es que ahora solo me toma el email, el telefono y el mensaje,
y no logro corregir el problema por mas que le hago cambios al codigo.
necesito ayuda Urgente!
cualquier cosa bienvenida sea.
se agradece, saludos!
CODIGO.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">
<?php
$nombre = $_POST['nombre'];
$direccion = $_POST['direccion'];
$residencia = $_POST['residencia'];
$telefono = $_POST['telefono'];
$mail = $_POST['mail'];
mail($para, $asunto, $mensaje, $header);
$mensaje = utf8_decode($_POST['mensaje']);
$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 " . $nombre . " \r\n";
$mensaje = "Con domicilio en " . $direccion . " \r\n";
$mensaje = "Ubicado en " . $residencia . " \r\n";
$mensaje = "Su telefono es " . $telefono . " \r\n";
$mensaje .= "Su e-mail es: " . $mail . " \r\n";
$mensaje .= "Mensaje: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());
$para = 'acm1pt@hotmail.com';
$asunto = 'Contacto';
mail($para, $asunto, utf8_decode($mensaje), $header);
?>
__________________
http://www.youtube.com/watch?v=fWyyHGOuCZs
|