Guest User

Untitled

a guest
Jul 3rd, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Mándanos tus comentarios</title>
  5. <style type="text/css">
  6. <!--
  7. body {
  8. background: url(images/fondo_form_carla.png);
  9. background-color: #343434;
  10.  
  11. }
  12. .style4 {font-size: 12px;}
  13. .style5 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
  14. .style6 {font-family: Verdana, Arial, Helvetica, sans-serif}
  15. .style7 {color: #FFFFFF}
  16. .style8 {font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; padding-top:2px;}
  17.  
  18.  
  19. a:link {
  20. color: #FFFFFF;
  21. }
  22. a:visited {
  23. color: #FFFFFF;
  24. }
  25. a:hover {
  26. color: #FFFFFF;
  27. }
  28. a:active {
  29. color: #FFFFFF;
  30. }
  31.  
  32. #limpiar {
  33.  
  34. margin-left:130px;
  35. *width: 130px;
  36.  
  37. }
  38.  
  39. #enviar {
  40.  
  41. margin-right:100px;
  42. *width: 115px;
  43.  
  44. }
  45. -->
  46. </style>
  47. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  48. <script type="text/javascript">
  49. <!--
  50. function MM_validateForm() { //v4.0
  51. if (document.getElementById){
  52. var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  53. for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
  54. if (val) { nm=val.name; if ((val=val.value)!="") {
  55. if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
  56. if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
  57. } else if (test!='R') { num = parseFloat(val);
  58. if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
  59. if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
  60. min=test.substring(8,p); max=test.substring(p+1);
  61. if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
  62. } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' : Este campo es necesario.\n'; }
  63. } if (errors) alert('Los siguientes campos son erroneos:\n'+errors);
  64. document.MM_returnValue = (errors == '');
  65. } }
  66. //-->
  67. </script>
  68. </head>
  69.  
  70. <body>
  71. <?
  72. if (!($HTTP_POST_VARS)){
  73. ?>
  74. <form id="form1" name="form1" method="post" action="">
  75. <table width="500" border="0" align="center" cellpadding="0" cellspacing="5">
  76. <tr>
  77. <td colspan="2" class="style5"><div align="center" class="style4 style6 style7"><strong>Contáctenos:</strong><br>
  78. Su Opinion es Importante Para Nosotros<br>
  79. </div></td>
  80. </tr>
  81. <tr>
  82. <td colspan="2" class="style5"><hr class="style4"></td>
  83. </tr>
  84. <tr>
  85. <td height="34" width="139" class="style5 style6 style7">Nombre Completo:</td>
  86. <td width="389" class= "style5"><input name="Nombre_Completo" type="text" id="Nombre_Completo" onBlur="MM_validateForm('Nombre_Completo','','R','Telefono','','R','Email','','RisEmail');return document.MM_returnValue" size="40" /></td>
  87.  
  88. </tr>
  89. <tr>
  90. <td height="34" class="style5 style6 style7">Teléfono de Contacto:</td>
  91. <td><table width="226" border="0" class="style5" cellspacing="0" cellpadding="0">
  92. <tr>
  93. <td class="style5"><input name="Telefono" type="text" id="Telefono" /></td>
  94. </tr>
  95. <tr>
  96. <td class="style8 style7"><div align="left">Ej: 0212-1234567</div></td>
  97. </tr>
  98. </table></td>
  99. </tr>
  100. <tr>
  101. <td height="34" class="style5 style6 style7">E-Mail:</td>
  102. <td class="style5"><input name="Email" type="text" class="style5" id="Email" size="40" /></td>
  103. </tr>
  104. <tr>
  105. <td class="style5 style6 style7">Comentarios:</td>
  106. <td class="style5"><textarea name="Comentarios" cols="45" rows="5" class="style5" id="Comentarios"></textarea></td>
  107. </tr>
  108. <tr>
  109. <td colspan="2" class="style5"><table width="500" border="0" align="center" cellpadding="1" cellspacing="4">
  110. <tr>
  111. <td width="323" class="style4 style6 style7"><div>
  112. <input name="Limpiar" type="submit" id="Limpiar" value="Limpiar Formulario">
  113. </div></td>
  114. <td width="300" class="style4 style6 style7"><div><input name="enviar" type="submit" id="enviar" value="Enviar Formulario" ></div></td>
  115. </tr>
  116. </table></td>
  117. </tr>
  118. </table>
  119. </form>
  120. <p>
  121. <?
  122. }else{
  123. //Estoy recibiendo el formulario, compongo el cuerpo
  124. $cuerpo = "****************************************************************\n";
  125. $cuerpo .= " CONTACTO\n";
  126. $cuerpo .= "****************************************************************\n";
  127. $cuerpo .= "Nombre Completo : " . $HTTP_POST_VARS["Nombre_Completo"] . "\n";
  128. $cuerpo .= "Teléfono de Contacto: " . $HTTP_POST_VARS["Telefono"]."\n";
  129. $cuerpo .= "Correo Electrónico : " . $HTTP_POST_VARS["Email"] . "\n";
  130. $cuerpo .= "Comentarios : " . $HTTP_POST_VARS["Comentarios"] . "\n";
  131. $cuerpo .= "****************************************************************\n";
  132. //mando el correo...
  133. mail("carla_andreina@hotmail.com","Formulario de Contacto Recibido",$cuerpo);
  134. mail("chispu@hotmail.com","Formulario de Contacto Recibido",$cuerpo);
  135. mail("danielpages@gmail.com","Formulario de Contacto Recibido",$cuerpo);
  136. //doy las gracias por el envío
  137.  
  138. echo("
  139. <p align=center>
  140. <span class=style5><img src="images/gracias.png" width=110 height=26 /><br />
  141. </span><span class=style6 style7>Responderemos su contacto a la brevedad posible</span></p>
  142. <p align=center class=style6><span class=style7><a href="">Haga Click aquí para continuar</a> </span>
  143. </p>");
  144.  
  145. }
  146. ?>
  147. </body>
  148. </html>
Add Comment
Please, Sign In to add comment