Ver Mensaje Individual
  #10 (permalink)  
Antiguo 06/05/2005, 08:26
patouc
 
Fecha de Ingreso: mayo-2005
Mensajes: 26
Antigüedad: 18 años, 11 meses
Puntos: 0
Este es el codigo
por favor necesito su ayuda

<html>
<head>
<title>Enviar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
color: #000099;
}
body {
background-color: #CCCCCC;
}
-->
</style></head>

<body link="#006060" vlink="#006060">
<?
if (!$HTTP_POST_VARS){
?>
<form action="6.php" method=post name="formulario" id="formulario">
Nombre:
<input type=text name="nombre" size=16>
<br>
Email:
<input type=text name=email size=16>
<br>
Comentarios: <textarea name=comentarios cols=32 rows=6 id="comentarios"></textarea>
<br>
<input name="enviar" type=submit id="enviar" value="Enviar">
</form>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "Comentarios: " . $HTTP_POST_VARS["comentarios"] . "\n";

//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);

//doy las gracias por el envío
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>
</body>
</html>

saludos
gracias