Advertising
Paste Description for CONTACTOS.HTML
CONTACTOS.HTML
- CONTACTOS.HTML
- Tuesday, August 7th, 2012 at 3:32:19pm MDT
- SEND.PHP
- <?php
- require_once 'Zend/Mail.php';
- require_once 'Zend/Mail/Transport/Smtp.php';
- $config = array('auth' => 'login',
- 'username' => 'valiweb@vali.com.mx',
- 'password' => 'Hola');
- $transport = new Zend_Mail_Transport_Smtp('192.168.4.13', $config);
- $nombre = $_POST['nombre'];
- if ($_REQUEST['nombre']==""){$_REQUEST['nombre']="Ingrese el Nombre";}
- $telefono = $_POST['telefono'];
- $email = $_POST['email'];
- $empresa = $_POST['empresa'];
- $mensaje = $_POST['mensaje'];
- $LF = "\n";
- if (empty($_POST['nombre'])) $error .= "<p class=\"error\">No has introducido tu nombre</p>";
- if (empty($_POST['email'])) $error .= "<p class=\"error\">No has introducido tu dirección de correo</p>";
- if (empty($_POST['comentario'])) $error .= "<p class=\"error\">No has escrito nada en el cuerpo del mensaje</p>";
- $text_len = strlen($_POST['comentario']);
- if($text_len > 800) { $error .= "<p class=\"error\">El comentario debe ser de menor a 800, se ingresaron $text_len </p>"; }
- if(isset($_POST['correo']))
- {
- if (!comprobar_email($_POST['email']))
- { $error .= "<p class=\"error\">La dirección de correo es incorrecta</p>"; }
- }// end of email check
- if($error) {
- echo $error;
- }
- else {
- $sugerencia = "Nombre: " . $nombre . $LF . "Empresa: " . $empresa . $LF . "Telefono: " . $telefono . $LF;
- $sugerencia .= "Correo: " . $email . $LF . $LF . "Comentario y/o sugerencia:" . $LF . $mensaje;
- $mail = new Zend_Mail();
- $mail->setBodyText($sugerencia);
- $mail->setFrom('webmaster@vali.com.mx', 'Pagina Web');
- $mail->addBcc('gerardo.carmona@vali.com.mx', 'Gerardo Carmona');
- $mail->setSubject('Comentarios de pagina web');
- $mail->send($transport);
- header("Location: contactos.html");
- ?>
- CONTACTOS.HTML
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
- <meta name="description" content=""/>
- <meta name="keywords" content=""/>
- <meta name="author" content=""/>
- <META http-equiv=Content-Type content="text/html; charset=windows-1252">
- <link rel="stylesheet" type="text/css" href="style1.css" media="screen"/>
- <link rel="canonical" href="" />
- <META content="MSHTML 6.00.2900.3268" name="GENERATOR">
- </HEAD>
- <title>.:Vali:. Alimentando tu esfuerzo, Fortaleciendo tu Futuro.</title> </head>
- </head>
- <body >
- <div id="wrapper">
- <div id="container">
- <div class="title">
- <div align="right"><img src="img/inicio.png" alt="" /> <a href="principal.html" >Inicio</a> <img src="img/serv.gif" alt="" /> <a href="servicios.html" >Servicios</a> <img src="img/icomail.gif" alt="" /> <a href="contactos.html" >Contactenos</a></div>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="745" height="120">
- <param name="movie" value="Title.swf" />
- <param name="quality" value="high" />
- <embed src="Title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="745" height="120" ></embed>
- </object>
- </div>
- <!--cierra div title -->
- <div class="header">
- <table width="703" height="309" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="200" valign="top">
- <img src="img/22.png" /><img src="img/10.png" /><br/><img src="img/pic_2.gif" />
- </td>
- <td width="7"></td>
- <td width="343"><br/>
- <form id="Contacto" name="Contacto" method="post" action="send.php" >
- <fieldset><legend>Buzón de Sugerencias</legend>
- <table width="309" border="0">
- <tr>
- <td width="100"><label>Nombre: </label> </td>
- <td width="199"> <input name="nombre" type="text" id="nombre"size="25" /></td>
- </tr>
- <tr>
- <td><label>Telefono: </label></td>
- <td> <input name="telefono" type="text" id="telefono"size="25" /></td>
- </tr>
- <tr>
- <td><img src="img/contacto.jpg"/ ><label> Email:</label></td>
- <td> <input name="email" type="text" id="email"size="25" /></td>
- </tr>
- <tr>
- <td><label>Empresa: </label></td>
- <td> <input name="empresa" type="text" id="empresa"size="25" /></td>
- </tr>
- <tr>
- <td><label>Comentario: </label></td>
- <td><textarea name="mensaje" cols="25" rows="4" id="mensaje"style="background-color:#FFCF42"></textarea></td>
- </tr>
- <tr>
- <td></td>
- <td><input type="reset" name="Reset" class="button" value="Borrar" />
- <input name="Submit" type="submit" class="button" value="Enviar" /></td>
- </tr>
- </table>
- </fieldset>
- </form> </td>
- <td width="220" valign="top"><br />
- <div align="center"> <img src="img/email.png" />
- </div><!--cierra div imagen -->
- </td>
- </tr>
- </table>
- <div id="menuh">
- <ul>
- <li><a href="lechero.html"><img src="img/lechero.gif" width="50" height="45"/><br/>I Lechero I</a></li>
- <li><a href="gallo.html"><img src="img/gallo.gif" width="50" height="45"/><br/>I Gallo I</a></li>
- <li><a href="porcino.html"><img src="img/porcino.gif" width="50" height="45"/><br/>I Porcino I</a></li>
- <li><a href="borrego.html"><img src="img/borrego.gif" width="50" height="45"/><br/>I Borrego I</a></li>
- <li><a href="caballo.html"><img src="img/equino.gif" width="50" height="45" /><br/>I Equino I</a></li>
- <li><a href="toro.html"><img src="img/toro.gif" width="50" height="45"/><br/>I Toro I</a></li>
- <li><a href="pollo.html"><img src="img/pollo.gif" width="50" height="45"/><br/>I Pollo I</a></li>
- <li><a href="bovino.html"><img src="img/bovino.gif" width="50" height="45"/><br/>I Bovino I</a></li>
- <li><a href="otros.html"><img src="img/otros.gif" width="50" height="45" /><br/>I Otros I</a></li>
- </ul>
- </div><!--cierra div menuproductos -->
- <div class="CopyR">
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="745" height="20">
- <param name="movie" value="copy.swf" />
- <param name="quality" value="high" />
- <embed src="copy.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="745" height="20" ></embed>
- </object>
- </div> <!--cierra div header -->
- </div><!--cierra div copyright -->
- </div><!--cierra div container -->
- </div><!--cierra div wrapper -->
- </body>
- </html>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.