Tema: Formulario
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/12/2008, 07:37
Lorsui
 
Fecha de Ingreso: agosto-2007
Mensajes: 114
Antigüedad: 16 años, 8 meses
Puntos: 1
Pregunta Formulario

tengo un formulario en php que confirma los datos en este segundo php que por algún motivo el servidor me pide que agregue ini_set(sendmail_from,'[email protected]');

y cuando lo hago me tira error en linea 49. Alguien me puede decir que está mal?

Código php:
Ver original
  1. <html>
  2. <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  3. <title>Formulario</title>
  4. </head>
  5.  
  6. <SCRIPT language=JavaScript src="scripts.js" type=text/javascript></SCRIPT>
  7. <body background="fondo2.gif">
  8. <?php
  9. if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
  10. {
  11. echo "<h3></h3>\n";
  12. $badinput = "<h3>Su direccion electronica no es valida o esta mal escrita, reingresela por favor.</h3>\n";
  13. echo $badinput;
  14. }
  15.  
  16. $todayis = date("l, F j, Y, g:i a") ;
  17.  
  18. $asunto = $asunto ;
  19. $subject = $asunto;
  20.  
  21. $nota = stripcslashes($nota);
  22.  
  23. $message = " $todayis [EST] \n
  24. - ASUNTO: $asunto \n
  25. - ESCRIBE: $nombre ($email)\n
  26. - TITULO DEL MENSAJE: $asunto\n
  27. - MENSAJE:
  28. $nota \n
  29.  
  30.  
  31. ------------------------------------------------------------------------------------------------------------------------------------\n
  32. - INFORMACION ADICIONAL: IP = $ipi \n
  33. - NAVEGADOR USADO: $httpagenti \n
  34. - SE CONTACTO DESDE LA PAGINA: $httprefi \n
  35. ";
  36.  
  37. ini_set(sendmail_from,'[email protected]');
  38. $from = "From: Formulario desde la web$email\r\n";
  39.  
  40. mail("[email protected]", $subject, $message, $from);
  41.  
  42. ?>
  43.  
  44. <p>&nbsp;</p>
  45. <p>&nbsp;</p>
  46. <div align="center"> /*esta sería la linea 49 que me da error*/
  47. <table border="0" id="table1" cellspacing="0" cellpadding="0" width="780">
  48. <tr>
  49. <td width="70" height="344">
  50. <p align="center">
  51. <br>
  52. <img border="0" src="dflateral.gif" width="70" height="139"><p align="center">
  53. <br>
  54. <font color="#FFFFFF">Home<br>
  55. &nbsp;</font><p align="center">&nbsp;</td>
  56.             <td><br>
  57. &nbsp;</td>
  58.             <td width="640" valign="bottom">
  59.             <table border="0" id="table2" cellspacing="0" cellpadding="0" height="399" width="769">
  60.                 <tr>
  61.                     <td height="15" width="203"></td>
  62.                     <td height="15" width="28"></td>
  63.                     <td height="15" width="5"></td>
  64.                     <td height="15" width="194"></td>
  65.                     <td height="15" width="5"></td>
  66.                     <td height="15" width="194" colspan="2"></td>
  67.                     <td height="15" width="140">
  68.                     <p align="center">
  69.                     <SCRIPT language=JavaScript type=text/javascript>
  70.                                     <!--   
  71.                                         escribir('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="120" HEIGHT="20" id="musica" ALIGN="">');
  72.                                         escribir('<param name="movie" value="musica.swf">');
  73.                                         escribir('<param name="quality" value="high">');
  74.                                         escribir('<embed src="musica.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WIDTH="120" HEIGHT="20"></embed>');
  75.                                         escribir('</object>');
  76.                                     //-->
  77.                                   </SCRIPT>
  78.                     </td>
  79.                 </tr>
  80.                 <tr>
  81.                     <td height="20" width="203">&nbsp;</td>
  82.                     <td height="20" width="425" colspan="5" align="center">
  83.                     <form method="post" action="sendform.php" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
  84.                     <p><font color="#FFFFFF" face="Arial">Confirmación de envío</font><p><br>
  85.         &nbsp;<b><font face="Tahoma" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FFFFFF">Fecha:</strong><?php echo $todayis ?><strong>
  86. <br />
  87.         Remitente:</strong><?php echo $nombre ?>( <?php echo $email ?> )<strong>
  88.         </strong></font></font>
  89.         <p align="center"><font face="Tahoma" size="2"><strong>
  90.         <font size="2" face="Tahoma" color="#FFFFFF">Su Mensaje:<?php $notesout = str_replace("\r", "<br/>", $nota);echo $notesout; ?> </font>
  91.         </strong></font>
  92.         <p align="center"><font face="Tahoma" size="2">
  93.         <font size="2" face="Tahoma" color="#FFFFFF">
  94.         <strong>
  95. <br />
  96.         Su Direccion IP:<?php echo $ip ?> <br />
  97.         Referido desde:<?php echo $httpref ?> </font>  
  98. <p align="center"><a href="respuesta_ok.php" style="text-decoration: none">
  99. <font color="#FFFFFF" face="Tahoma" size="2">[CONFIRMAR]</font></a></td>
  100.                     <td height="20" width="71" align="center">
  101.                     &nbsp;</td>
  102.                     <td height="20" width="70" align="center">
  103.                     &nbsp;</td>
  104.                 </tr>
  105.                 <tr>
  106.                     <td height="20" width="203">&nbsp;</td>
  107.                     <td height="20" width="28">&nbsp;</td>
  108.                     <td height="20" width="5">&nbsp;</td>
  109.                     <td height="20" width="194">&nbsp;</td>
  110.                     <td height="20" width="5">&nbsp;</td>
  111.                     <td height="20" width="194" colspan="2">&nbsp;</td>
  112.                     <td height="20" valign="bottom" width="140">
  113.                     <img border="0" src="DA.gif" width="167" height="26"></td>
  114.                 </tr>
  115.             </table>
  116.             </td>
  117.         </tr>
  118.         </table>
  119. </div>

Última edición por GatorV; 08/12/2008 a las 09:50