Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/11/2011, 14:13
kidart
 
Fecha de Ingreso: junio-2010
Mensajes: 108
Antigüedad: 14 años, 9 meses
Puntos: 2
formulario php

Hola, los consulto porque estoy atravesando un problema con mi web.

tengo todo temrinado y funcionando, pero el formulario para enviar correos no envia nada. El link a la pagina es este.link

La pregunta es si alguien tiene idea porque puede estar fallando o si pueden recomendarme algun otro codigo para el formulario...

El servidor soporta php y me confirmaron que esta activado.

El codigo del php es:

Código PHP:
Ver original
  1. <!DOCTYPE HTML>
  2. <html lang="en-us">
  3. <head>
  4.     <meta charset="utf-8" />
  5.     <meta name="Description" content="Somos Avalon Dreams, un criadoero de gatos <strong>Siameses</strong>  y Orientales basado en Buenos Aires, ARGENTINA. Los invitamos a ver nuestro sitio y suscribirse al mailing list para enterarse de las últimas novedades.">
  6.     <meta name="Keywords" content="">
  7.     <title>AVALON DREAMS - CONTACTO</title>
  8.     <link rel="stylesheet" href="css/html5.css" type="text/css" />
  9.     <link rel="stylesheet" href="css/avalon.css" type="text/css" />
  10.     <!--[if IE]>
  11.         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  12.     <![endif]-->
  13.     <!--[if lt IE 9]>
  14.         <link rel="stylesheet" type="text/css" href="css/avalonIE.css" />
  15.         <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
  16.     <![endif]-->
  17.     <!--[if lt IE 7]>
  18.         <link rel="stylesheet" type="text/css" media="all" href="css/avalonIE6.css"/>
  19.     <![endif]-->
  20. </head>
  21. <body>
  22.     <div class="wrapper">
  23.         <div class="main contacto">
  24.             <header>
  25.                 <nav>
  26.                     <ul>
  27.                         <li><a href="index.html" title="NOSOTRAS" id="header_nav_nosotras">NOSOTRAS</a></li>
  28.                         <li><a href="javascript:void(0);" title="M&Aacute;S INFORMACI&Oacute;N" id="header_nav_mas_informacion">M&Aacute;S INFORMACI&Oacute;N</a></li>
  29.                         <li><a href="galeria.html" title="CACHARROS" id="header_nav_cachorros">CACHARROS</a></li>
  30.                         <li><a href="galeria.html" title="NUESTROS GATOS" id="header_nav_nuestros_gatos">NUESTROS GATOS</a></li>
  31.                         <li><a href="http://www.avdreamscattery.blogspot.com" title="BLOG" id="header_nav_blog">BLOG</a></li>
  32.                         <li><a href="contacto.html" title="CONTACTO" id="header_nav_contacto" class="active">CONTACTO</a></li>
  33.                     </ul>
  34.                 </nav>
  35.                 <hgroup>
  36.                     <h1><a href="index.html" title="AVALON DREAMS - SIAMESES & ORIENTALES">AVALON DREAMS - SIAMESES & ORIENTALES</a></h1>
  37.                    <h3 id="royal_canin"><a href="javascript:void(0);" title="ROYAL CANIN">ROYAL CANIN</a></h3>
  38.                     <h3 id="fedagat"><a href="http://fedagat.blogspot.com/" title="FEDAGAT">FEDAGAT</a></h3>
  39.                   <h3 id="fife"><a href="http://fifeweb.org" title="FIFE">FIFE</a></h3>
  40.                     <h3 id="tica"><a href="http://www.tica.org/" title="TICA">TICA</a></h3>
  41.                     <h3 id="fundacion"><a href="http://www.asociacion-felina-argentina.com/" title="AFA">AFA</a></h3>
  42.                 </hgroup>
  43.            </header>
  44.             <div class="contenido">
  45.                 <section id="formulario_contacto">
  46.                     <header>
  47.                         <h1><em>C</em>CONTACTO</h1>
  48.                     </header>
  49.                     <div class="contenedor_formulario">
  50.                         <?
  51.                             if (!$HTTP_POST_VARS){
  52.                         ?>
  53.                         <form id="form_test" method="post" action="contacto.php">
  54.                             <dl>
  55.                             <dt><label for='nombre' id="contacto_nombre"><em>Nombre</em> / Name</label></dt>
  56.                             <dd><input type="text" id="nombre" name="nombre" class="input_contacto" autofocus required/></dd>
  57.                             <dt><label for='email_formulario' id="contacto_email"><em>E-mail</em> / E-mail</label></dt>
  58.                             <dd><input type="email" id="email_formulario" name="email_formulario" class="input_contacto" required/></dd>
  59.                             <dt><label for='subject' id="contacto_asunto"><em>Asunto</em> / Subject</label></dt>
  60.                             <dd><input type="text" id="subject" name="subject" class="input_contacto" required/></dd>
  61.                             <dt class="titulo_mensaje" id="contacto_mensaje"><label for='mensaje_formulario'><em>Mensaje</em> / Message</label></dt>
  62.                             <dd class="textarea_mensaje">
  63.                                 <textarea id="mensaje_formulario" name="mensaje_formulario" rows="5" cols="80"
  64.                                     class="textarea_contacto" required></textarea>
  65.                             </dd>
  66.                             <dd class="boton_mensaje">
  67.                                 <input type="submit" value="Enviar /Send" id="enviar" name="enviar" />
  68.                             </dd>
  69.                         </dl>
  70.                             <div id="response"></div>
  71.                         </form>
  72.                          <?
  73.                             }else{
  74.                                 $cuerpo =  $_POST["email"];            
  75.                                 $subject = $_POST["email"]                                                      
  76.                                 mail("[email protected]", subject , $cuerpo);                                    
  77.                                 echo "El mensaje fue enviado, muchas gracias.";
  78.                                 }
  79.                             ?>    
  80.                     </div>
  81.                     <div class="contenedor_telefonos">
  82.                         <ul>
  83.                             <li>
  84.                                 <span>15 6 266 2152</span>
  85.                                 <h2 id="eugenia">Eugenia Fisicaro</h2>
  86.                             </li>
  87.                             <li>
  88.                                 <span>15 6 588 5712</span>
  89.                                 <h2 id="marcela">Marcela Cecini</h2>
  90.                             </li>
  91.                         </ul>
  92.                         <div style="clear:both;"></div>
  93.                         <a href="http://www.facebook.com/profile.php?id=100002853707089" title="Seguinos en Facebook" id="facebook_contacto" target="_blank">Seguinos en Facebook</a>
  94.                     </div>
  95.                 </section>
  96.             </div>
  97.             <footer>
  98.                     <span>2011&copy; Avalon Dreams. Todos los derechos reservados</span>
  99.                 </footer>
  100.         </div>
  101.     </div>
  102.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>    
  103.     <script src="http://html5form.googlecode.com/svn/trunk/jquery.html5form-min.js"></script>
  104.     <script>
  105.         $(document).ready(function(){        
  106.             $('#form_test').html5form({
  107.                 allBrowsers : true,
  108.                 responseDiv : '#response',
  109.                 method : 'POST',
  110.                 colorOn :'#6b6764',
  111.                 colorOff :'#0d85a5'
  112.             });
  113.     </script>
  114. </body>
  115. </html>




Se agradece cualquier ayuda.