Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/01/2012, 05:27
dsdro
 
Fecha de Ingreso: enero-2012
Ubicación: madrid
Mensajes: 6
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: problema con formulario frontpage en hostalia

Hola, alguien podría revisarme el código....
- Pagina del formulario:
<form method="POST" action="enviar.php">

<p style="margin-top: 0; margin-bottom: 0">Nombre y Apellidos: <input type="text" name="nombre" size="20"></p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

<p style="margin-top: 0; margin-bottom: 0">Teléfono de contacto: <input type="text" name="telefono" size="20"></p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

<p style="margin-top: 0; margin-bottom: 0">Mail de contacto: <input type="text" name="correo" size="20"></p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

<p style="margin-top: 0; margin-bottom: 0">Comentario:
<textarea rows="2" name="comentario" cols="94"></textarea></p>

<p><input type="submit" value="Enviar" name="B1"><input type="reset" value="Borrar" name="B2"></p>
</form>

- Pagina php (enviar.php)

<?php

$para = '[email protected]';
$asunto = 'Consulta desde formulario';
$remitente = $correo ;
$mensaje = "

--- Datos de la consulta ---

Nombre y Apellidos: $nombre
Telefono: $telefono
Correo: $correo
Comentario: $comentario



";
mail($para, $asunto, $mensaje, "From: $remitente");

include("enviado.htm");
?>

MUCHAS GRACIAS !!!