Ver Mensaje Individual
  #7 (permalink)  
Antiguo 03/04/2010, 16:48
Avatar de rodrypaladin
rodrypaladin
Moderador
 
Fecha de Ingreso: abril-2010
Ubicación: Madrid
Mensajes: 2.127
Antigüedad: 14 años, 1 mes
Puntos: 468
Respuesta: Error al redireccionar en formulario contacto

nose si tendrá algo que ver, pero te pego absolutamente todo lo que hay en el archivo php vale?

Cita:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<?
$nombre = $_POST['Nombre'];
$mail = $_POST['Email'];
$empresa = $_POST['Apellidos'];

$header = 'From: ' . $_POST['$Email'] . " \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 " . $_POST['Nombre'] . ", " . $_POST['$Apellidos'] . " \r\n";
$mensaje .= "Su e-mail es: " . $_POST['Email'] . " \r\n";
$mensaje .= "Mensaje: " . $_POST['texto'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = '[email protected]';
$asunto = 'Email de contacto de EscuelaProcan.es';

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

if($enviado)
header('Location: http://www.escuelprocan.es/index.html');
?>

</body>
</html>