Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2010, 22:01
tips
 
Fecha de Ingreso: marzo-2010
Mensajes: 5
Antigüedad: 14 años, 1 mes
Puntos: 0
Exclamación ayuda con validacion

Alguien me puede ayudar a validar esto con php?

<?php
$para = '[email protected]';

$asunto = $_POST["nombre"]. " " .$_POST["apellido"];
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$MESSAGE_BODY .= "Nombre: ".$_POST["nombre"]."<br>";
$MESSAGE_BODY .= "Apellido: ".$_POST["apellido"]."<br>";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>";
$MESSAGE_BODY .= "Telefono: ".$_POST["telefono"]."<br>";
$MESSAGE_BODY .= "Mensaje: ".nl2br($_POST["mensaje"])."<br>";
mail($para, $asunto, $MESSAGE_BODY, $mailheader) or die ("Error al enviar el Formulario !");
echo "Gracias por rellenar el formulario. <br>Se ha enviado correctamente.";
?>