Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/04/2010, 04:15
Avatar de danistrein
danistrein
 
Fecha de Ingreso: septiembre-2008
Ubicación: Salta Capital
Mensajes: 550
Antigüedad: 15 años, 7 meses
Puntos: 9
Respuesta: ayudenme porfabor

hola loco1, lo puedes lograr usando la funcion mail, aquí te dejo un ejemplo que te hice con los mismos campos que tienes en tu pagina web:

Código PHP:
Ver original
  1. <?
  2. if($_POST['enviar']){
  3.  
  4. if(empty($_REQUEST['nombre'])){
  5. echo 'Ingresa tu nombre correctamente';
  6. }elseif(empty($_REQUEST['email'])){
  7. echo 'Ingresa tu email correctamente';
  8. }elseif(empty($_REQUEST['telefono'])){
  9. echo 'Ingresa tu telefono correctamente';
  10. }elseif(empty($_REQUEST['consulta'])){
  11. echo 'Ingresa tu consulta correctamente';
  12. }else{
  13.  
  14. $nombre = $_POST['nombre'];
  15. $email = $_POST['email'];
  16. $telefono = $_POST['telefono'];
  17. $consulta = $_POST['consulta'];
  18. $destino  = '[email protected]' ;
  19. $asunto = "Cotacto desde la web";
  20. $mensaje = "
  21. Nombre: $nombre \n
  22. Email: $email \n
  23. Telefono: $telefono \n
  24. Consulta: $consulta
  25. ";
  26. $enviado = "From: [email protected]\r\nContent-type: text/html\r\n";
  27. mail($destino, $asunto, $mensaje,$enviado);
  28. echo "se envio correctamente el mensaje";
  29.  
  30. }}else{
  31. ?>
  32. <form action="" method="post">
  33. Nombre <input name="nombre" type="text" /><br>
  34. Email <input name="email" type="text" /><br>
  35. Telefono <input name="telefono" type="text" /><br>
  36. Consulta <textarea name="consulta" ></textarea><br>
  37. <input name="enviar" type="submit" value="Enviar"/>
  38. </form>
  39. <?
  40. }
  41. ?>

cualquier duda que tengas puedes consulta en el foro de php

__________________
Appones.net - www.appones.net

Última edición por danistrein; 07/04/2010 a las 14:50