Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/07/2006, 14:10
Avatar de the_scorpion
the_scorpion
 
Fecha de Ingreso: mayo-2006
Ubicación: Cuba
Mensajes: 696
Antigüedad: 17 años, 10 meses
Puntos: 3
Hola

Dime que te puede aportar esto no obstante existen muchisimos topic aqui sobre este tema, creo que para mi es la pregunta del día en este foro.

Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<html> 
<head> 
    <title>Mándanos tus comentarios</title> 
</head> 

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

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

    
//y aquí doy las gracias por el envío 
    
echo "Gracias por rellenar el formulario. Se ha enviado correctamente."

?> 
</body> 
</html>
saludos
bye
__________________
Que hablen mal de uno es espantoso. Pero hay algo peor: que no hablen.
Quien hace, puede equivocarse. Quien nada hace, ya está equivocado".