Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/02/2010, 10:10
bbrian
 
Fecha de Ingreso: enero-2010
Mensajes: 400
Antigüedad: 14 años, 3 meses
Puntos: 6
Formulario php

Hise mi formulario php asi y no me funciona:

Contacto.html

Código PHP:
<form id="form1" name="form1" method="post" action="enviar.php">
<
p>Nombre:<br />
<
label>
<
input name="nombre" type="text" id="nombre" />
</
label>
<
br />
Telefono:<br />
<
input name="telefono" type="text" id="telefono" />
<
br />
Email:<br />
<
input name="email" type="text" id="email" />
<
br />
Mensaje:<br />
<
textarea name="mensaje" id="mensaje"></textarea>
<
br />
<
label>
<
input type="submit" name="Submit" value="Enviar Formulario" />
</
label>
</
p>
</
form
enviar.php

Código PHP:
<?php

$mail
='[email protected]';


$nombre $_POST['nombre'];
$telefono $_POST['telefono'];
$email $_POST['email'];
$mensaje $_POST['mensaje'];

$thank="gracias.html";

$message "
nombre:"
.$nombre."
telefono:"
.$telefono."
email:"
.$email."
mensaje:"
.$mensaje."";

if (
mail($mail,"Formulario de Consulta",$message))
Header ("Location: $thank" );

?>
Y cuando lo pruebo me sale este error:

enviar.php
Warning: Cannot modify header information - headers already sent by (output started at /home/midominio/public_html/sistema/enviar.php:10) in /home/midominio/public_html/sistema/enviar.php on line 29


CUAL ES EL PROBLEMA ??