PHP el Formulario

  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Noviembre 6th, 2009, 2:04 pm

Ozzu,

Estoy teniendo problemas con la transferencia de la información de mi visitante del sitio Web de la forma HTML a mi archivo PHP a mi dirección de correo electrónico designada.

Todo lo que veo cuando abro el correo electrónico am es la siguiente:



-------------------------------------------------- ------------------------------

Nombre:
Email:
Número de Teléfono:
Comentario:

La muestra sobre el nombre de campo de cada fila, pero los datos de entrada de los visitantes de sitios web.

A continuación se muestra el código PHP que escribí, alguna sugerencia?
Gracias CgFX


Código: [ Select ]
<?php

/* Subject and Email Variables */

    $emailSubject = 'Contact Us!';
    $webMaster = 'putEmailAddressHere';
    
/* Gathering Data Variables */

    $name = $_POST ['name'];
    $email = $_POST ['email'];
    $phone = $_POST ['phone'];
    $comment = $_POST ['comment'];
    
    $body = <<<EOD
<br><hr><br>    
Name: $name <br>
Email: $email <br>
Phone Number: $phone <br>
Comment: $comment <br>
EOD;

    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    
/* Result rendered as HTML */

    $theResults = <<<EOD
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Website Name | Thank You</title>
</head>

<body>
Thank you very much, your email will be answered very soon. <a href="websiteAddressHere/">Click here</a> to go back to our site.

</body>
</html>
EOD;
echo "$theResults";

?>
  1. <?php
  2. /* Subject and Email Variables */
  3.     $emailSubject = 'Contact Us!';
  4.     $webMaster = 'putEmailAddressHere';
  5.     
  6. /* Gathering Data Variables */
  7.     $name = $_POST ['name'];
  8.     $email = $_POST ['email'];
  9.     $phone = $_POST ['phone'];
  10.     $comment = $_POST ['comment'];
  11.     
  12.     $body = <<<EOD
  13. <br><hr><br>    
  14. Name: $name <br>
  15. Email: $email <br>
  16. Phone Number: $phone <br>
  17. Comment: $comment <br>
  18. EOD;
  19.     $headers = "From: $email\r\n";
  20.     $headers .= "Content-type: text/html\r\n";
  21.     $success = mail($webMaster, $emailSubject, $body, $headers);
  22.     
  23. /* Result rendered as HTML */
  24.     $theResults = <<<EOD
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
  28. <title>Website Name | Thank You</title>
  29. </head>
  30. <body>
  31. Thank you very much, your email will be answered very soon. <a href="websiteAddressHere/">Click here</a> to go back to our site.
  32. </body>
  33. </html>
  34. EOD;
  35. echo "$theResults";
  36. ?>
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Noviembre 6th, 2009, 2:04 pm

  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Noviembre 6th, 2009, 2:08 pm

También me gustaría añadir, que publico en cada campo y el botón Enviar el archivo PHP anteriores. La forma es valida, por lo que estoy perdido.
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Noviembre 6th, 2009, 2:13 pm

Otro pedacito de código, a continuación es el código de la siguiente forma:

HTML Código: [ Select ]
<div class="formContainer">
      <fieldset>
        <legend>Contact Us</legend>
      <table width="250" border="0">
          <tr>
            <td width="135" class="formLabels">Name</td>
            <td width="200"><form id="form1" name="form1" method="post" action="../contactformprocess.php">
              <label>
              <input name="name" type="text" id="name" onblur="MM_validateForm('name','','R');return document.MM_returnValue" />
              </label>
            </form></td>
          </tr>
          <tr>
            <td class="formLabels">Email</td>
            <td><form id="form2" name="form2" method="post" action="../contactformprocess.php">
              <label onfocus="MM_validateForm('email','','RisEmail');return document.MM_returnValue">
              <input name="email" type="text" id="email" onblur="MM_validateForm('email','','RisEmail');return document.MM_returnValue" />
              </label>
            </form></td>
          </tr>
          <tr>
            <td class="formLabels">Phone</td>
            <td><form id="form3" name="form3" method="post" action="../contactformprocess.php">
              <label>
              <input name="phone" type="text" id="phone" onblur="MM_validateForm('phone','','RisNum');return document.MM_returnValue" />
              </label>
            </form></td>
          </tr>
          <tr>
            <td class="formLabels"><div align="right">Comment</div></td>
            <td><form id="form5" name="form5" method="post" action="../contactformprocess.php">
              <label>
              <textarea name="comment" id="comment" cols="21" rows="2"></textarea>
              </label>
            </form></td>
          </tr>
      </table>
    <form id="form4" name="form4" method="post" action="../contactformprocess.php">
      <label>
          <input type="submit" name="submit" id="submit" value="Submit" />
          </label>
      </form>
      </fieldset>
    </div>
 
  1. <div class="formContainer">
  2.       <fieldset>
  3.         <legend>Contact Us</legend>
  4.       <table width="250" border="0">
  5.           <tr>
  6.             <td width="135" class="formLabels">Name</td>
  7.             <td width="200"><form id="form1" name="form1" method="post" action="../contactformprocess.php">
  8.               <label>
  9.               <input name="name" type="text" id="name" onblur="MM_validateForm('name','','R');return document.MM_returnValue" />
  10.               </label>
  11.             </form></td>
  12.           </tr>
  13.           <tr>
  14.             <td class="formLabels">Email</td>
  15.             <td><form id="form2" name="form2" method="post" action="../contactformprocess.php">
  16.               <label onfocus="MM_validateForm('email','','RisEmail');return document.MM_returnValue">
  17.               <input name="email" type="text" id="email" onblur="MM_validateForm('email','','RisEmail');return document.MM_returnValue" />
  18.               </label>
  19.             </form></td>
  20.           </tr>
  21.           <tr>
  22.             <td class="formLabels">Phone</td>
  23.             <td><form id="form3" name="form3" method="post" action="../contactformprocess.php">
  24.               <label>
  25.               <input name="phone" type="text" id="phone" onblur="MM_validateForm('phone','','RisNum');return document.MM_returnValue" />
  26.               </label>
  27.             </form></td>
  28.           </tr>
  29.           <tr>
  30.             <td class="formLabels"><div align="right">Comment</div></td>
  31.             <td><form id="form5" name="form5" method="post" action="../contactformprocess.php">
  32.               <label>
  33.               <textarea name="comment" id="comment" cols="21" rows="2"></textarea>
  34.               </label>
  35.             </form></td>
  36.           </tr>
  37.       </table>
  38.     <form id="form4" name="form4" method="post" action="../contactformprocess.php">
  39.       <label>
  40.           <input type="submit" name="submit" id="submit" value="Submit" />
  41.           </label>
  42.       </form>
  43.       </fieldset>
  44.     </div>
  45.  
  • righteous_trespasser
  • Scuffle
  • Genius
  • Avatar de Usuario
  • Registrado: Mar 12, 2007
  • Mensajes: 6228
  • Loc: South-Africa
  • Status: Offline

Nota Noviembre 9th, 2009, 2:55 am

No sé si esto va a marcar una diferencia, pero vale la pena intentarlo...donde se declaran las variables como:
PHP Código: [ Select ]
$name = $_POST ['name'];

probar sin el espacio como este:
PHP Código: [ Select ]
$name = $_POST['name'];

A ver si eso hace una primera diferencia.
Let's leave all our *plum* where it is and go live in the jungle ...
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Noviembre 9th, 2009, 10:04 am

R_T,

Gracias por su respuesta, ya he utilizado ese paso, pero no fue el problema tampoco. Pero alto de 5 a usted de todos modos porque eso es en realidad la forma correcta de escribir esa cadena.

Mejor,
CgFX
  • Bogey
  • Bogey
  • Genius
  • Avatar de Usuario
  • Registrado: Jul 14, 2005
  • Mensajes: 8212
  • Loc: USA
  • Status: Offline

Nota Noviembre 9th, 2009, 8:25 pm

¿Por qué tienen todos los formularios en la parte HTML? Si usted necesita que para el código JavaScript, puede validar los valores usando PHP en vez de JavaScript. Haría las cosas mucho más fácil.

Así como una prueba: ver si la siguiente ayuda

smtp.class.php
PHP Código: [ Select ]
<?php
// Mail.php
class mail
{
    private $smtpServer = 'smtp.site.com';
    private $port = '25';
    private $timeout = 30;
    private $username = 'smtp_user';
    private $password = 'smtp_pass';
    private $username_email = 'admin@site.com';
    private $newline = "\r\n";
    private $localdomain = 'site.com';
    private $charset = 'windows-1251';
    private $contentTransferEncoding = false;
 
    // Do not change anything below
    private $smtpConnect = false;
    private $to = false;
    private $subject = false;
    private $message = false;
    private $headers = false;
    private $logArray = array(); // Array response message for debug
    private $Error = '';
 
    public function __construct($to, $subject, $message, $to2 = false) {
        $this->to = (($to2 !== false)? $this->username_email : $to);
        $this->subject = &$subject;
        $this->message = &$message;
       
        // Connect to server
        if(!$this->Connect2Server()) {
            // Display error message
            echo '<pre>'.trim($this->Error).'</pre>'.$this->newline.'<!-- '.$this->newline;
            print_r($this->logArray);
            echo $this->newline.'-->'.$this->newline;
            return false;
        }
        return true;
    }
 
    private function Connect2Server() {
        $from = (($to2 == false)? $this->username_email : $to);
       
        // Connect to server
        $this->smtpConnect = fsockopen($this->smtpServer,$this->port,$errno,$error,$this->timeout);
        $this->logArray['CONNECT_RESPONSE'] = $this->readResponse();
 
        if (!is_resource($this->smtpConnect)) {
            return false;
        }
        $this->logArray['connection'] = "Connection accepted: {$smtpResponse}";
        // Hi, server!
        $this->sendCommand("HELO {$this->localdomain}");
        $this->logArray['HELO'] = $this->readResponse();
        // Let's know each other
        $this->sendCommand('AUTH LOGIN');
        $this->logArray['AUTH_REQUEST'] = $this->readResponse();
        // My name...
        $this->sendCommand(base64_encode($this->username));
        $this->logArray['REQUEST_USER'] = $this->readResponse();
        // My password..
        $this->sendCommand(base64_encode($this->password));
        $this->logArray['REQUEST_PASSWD'] = $this->readResponse();
        // If error in response auth...
        if (substr($this->logArray['REQUEST_PASSWD'],0,3)!='235') {
            $this->Error .= 'Authorization error! '.$this->logArray['REQUEST_PASSWD'].$this->newline;
            return false;
        }
        // "From" mail...
        $this->sendCommand("MAIL FROM: {$from}");
        $this->logArray['MAIL_FROM_RESPONSE'] = $this->readResponse();
        if (substr($this->logArray['MAIL_FROM_RESPONSE'],0,3)!='250') {
            $this->Error .= 'Mistake in sender\'s address! '.$this->logArray['MAIL_FROM_RESPONSE'].$this->newline;
            return false;
        }
        // "To" address
        $this->sendCommand("RCPT TO: {$this->to}");
        $this->logArray['RCPT_TO_RESPONCE'] = $this->readResponse();
        if(substr($this->logArray['RCPT_TO_RESPONCE'],0,3) != '250')
        {
            $this->Error .= 'Mistake in reciepent address! '.$this->logArray['RCPT_TO_RESPONCE'].$this->newline;
        }
        // Send data to server
        $this->sendCommand('DATA');
        $this->logArray['DATA_RESPONSE'] = $this->readResponse();
        // Send mail message
        if (!$this->sendMail()) return false;
        // Good bye server! =)
        $this->sendCommand('QUIT');
        $this->logArray['QUIT_RESPONSE'] = $this->readResponse();
        // Close smtp connect
        fclose($this->smtpConnect);
        return true;
    }
    // Function send mail
    private function sendMail() {
        $this->sendHeaders();
        $this->sendCommand($this->message);
        $this->sendCommand('.');
        $this->logArray['SEND_DATA_RESPONSE'] = $this->readResponse();
        if(substr($this->logArray['SEND_DATA_RESPONSE'],0,3)!='250') {
            $this->Error .= 'Mistake in sending data! '.$this->logArray['SEND_DATA_RESPONSE'].$this->newline;
            return false;
        }
        return true;
    }
    // Function read response
    private function readResponse() {
        $data="";
        while($str = fgets($this->smtpConnect,4096))
        {
            $data .= $str;
            if(substr($str,3,1) == " ") { break; }
        }
        return $data;
    }
    // function send command to server
    private function sendCommand($string) {
        fputs($this->smtpConnect,$string.$this->newline);
        return ;
    }
    // function send headers
    private function sendHeaders() {
        $from = (($to2 == false)? $this->username_email : $to);
        $this->sendCommand("Date: ".date("D, j M Y G:i:s")." +0700");
        $this->sendCommand("From: <{$from}>");
        $this->sendCommand("Reply-To: <{$from}>");
        $this->sendCommand("To: <{$this->to}>");
        $this->sendCommand("Subject: {$this->subject}");
        $this->sendCommand("MIME-Version: 1.0");
        $this->sendCommand("Content-Type: text/html; charset={$this->charset}");
        if ($this->contentTransferEncoding) $this->sendCommand("Content-Transfer-Encoding: {$this->contentTransferEncoding}");
        return ;
    }
 
    public function __destruct() {
        if (is_resource($this->smtpConnect)) fclose($this->smtpConnect);
    }
}
?>
  1. <?php
  2. // Mail.php
  3. class mail
  4. {
  5.     private $smtpServer = 'smtp.site.com';
  6.     private $port = '25';
  7.     private $timeout = 30;
  8.     private $username = 'smtp_user';
  9.     private $password = 'smtp_pass';
  10.     private $username_email = 'admin@site.com';
  11.     private $newline = "\r\n";
  12.     private $localdomain = 'site.com';
  13.     private $charset = 'windows-1251';
  14.     private $contentTransferEncoding = false;
  15.  
  16.     // Do not change anything below
  17.     private $smtpConnect = false;
  18.     private $to = false;
  19.     private $subject = false;
  20.     private $message = false;
  21.     private $headers = false;
  22.     private $logArray = array(); // Array response message for debug
  23.     private $Error = '';
  24.  
  25.     public function __construct($to, $subject, $message, $to2 = false) {
  26.         $this->to = (($to2 !== false)? $this->username_email : $to);
  27.         $this->subject = &$subject;
  28.         $this->message = &$message;
  29.        
  30.         // Connect to server
  31.         if(!$this->Connect2Server()) {
  32.             // Display error message
  33.             echo '<pre>'.trim($this->Error).'</pre>'.$this->newline.'<!-- '.$this->newline;
  34.             print_r($this->logArray);
  35.             echo $this->newline.'-->'.$this->newline;
  36.             return false;
  37.         }
  38.         return true;
  39.     }
  40.  
  41.     private function Connect2Server() {
  42.         $from = (($to2 == false)? $this->username_email : $to);
  43.        
  44.         // Connect to server
  45.         $this->smtpConnect = fsockopen($this->smtpServer,$this->port,$errno,$error,$this->timeout);
  46.         $this->logArray['CONNECT_RESPONSE'] = $this->readResponse();
  47.  
  48.         if (!is_resource($this->smtpConnect)) {
  49.             return false;
  50.         }
  51.         $this->logArray['connection'] = "Connection accepted: {$smtpResponse}";
  52.         // Hi, server!
  53.         $this->sendCommand("HELO {$this->localdomain}");
  54.         $this->logArray['HELO'] = $this->readResponse();
  55.         // Let's know each other
  56.         $this->sendCommand('AUTH LOGIN');
  57.         $this->logArray['AUTH_REQUEST'] = $this->readResponse();
  58.         // My name...
  59.         $this->sendCommand(base64_encode($this->username));
  60.         $this->logArray['REQUEST_USER'] = $this->readResponse();
  61.         // My password..
  62.         $this->sendCommand(base64_encode($this->password));
  63.         $this->logArray['REQUEST_PASSWD'] = $this->readResponse();
  64.         // If error in response auth...
  65.         if (substr($this->logArray['REQUEST_PASSWD'],0,3)!='235') {
  66.             $this->Error .= 'Authorization error! '.$this->logArray['REQUEST_PASSWD'].$this->newline;
  67.             return false;
  68.         }
  69.         // "From" mail...
  70.         $this->sendCommand("MAIL FROM: {$from}");
  71.         $this->logArray['MAIL_FROM_RESPONSE'] = $this->readResponse();
  72.         if (substr($this->logArray['MAIL_FROM_RESPONSE'],0,3)!='250') {
  73.             $this->Error .= 'Mistake in sender\'s address! '.$this->logArray['MAIL_FROM_RESPONSE'].$this->newline;
  74.             return false;
  75.         }
  76.         // "To" address
  77.         $this->sendCommand("RCPT TO: {$this->to}");
  78.         $this->logArray['RCPT_TO_RESPONCE'] = $this->readResponse();
  79.         if(substr($this->logArray['RCPT_TO_RESPONCE'],0,3) != '250')
  80.         {
  81.             $this->Error .= 'Mistake in reciepent address! '.$this->logArray['RCPT_TO_RESPONCE'].$this->newline;
  82.         }
  83.         // Send data to server
  84.         $this->sendCommand('DATA');
  85.         $this->logArray['DATA_RESPONSE'] = $this->readResponse();
  86.         // Send mail message
  87.         if (!$this->sendMail()) return false;
  88.         // Good bye server! =)
  89.         $this->sendCommand('QUIT');
  90.         $this->logArray['QUIT_RESPONSE'] = $this->readResponse();
  91.         // Close smtp connect
  92.         fclose($this->smtpConnect);
  93.         return true;
  94.     }
  95.     // Function send mail
  96.     private function sendMail() {
  97.         $this->sendHeaders();
  98.         $this->sendCommand($this->message);
  99.         $this->sendCommand('.');
  100.         $this->logArray['SEND_DATA_RESPONSE'] = $this->readResponse();
  101.         if(substr($this->logArray['SEND_DATA_RESPONSE'],0,3)!='250') {
  102.             $this->Error .= 'Mistake in sending data! '.$this->logArray['SEND_DATA_RESPONSE'].$this->newline;
  103.             return false;
  104.         }
  105.         return true;
  106.     }
  107.     // Function read response
  108.     private function readResponse() {
  109.         $data="";
  110.         while($str = fgets($this->smtpConnect,4096))
  111.         {
  112.             $data .= $str;
  113.             if(substr($str,3,1) == " ") { break; }
  114.         }
  115.         return $data;
  116.     }
  117.     // function send command to server
  118.     private function sendCommand($string) {
  119.         fputs($this->smtpConnect,$string.$this->newline);
  120.         return ;
  121.     }
  122.     // function send headers
  123.     private function sendHeaders() {
  124.         $from = (($to2 == false)? $this->username_email : $to);
  125.         $this->sendCommand("Date: ".date("D, j M Y G:i:s")." +0700");
  126.         $this->sendCommand("From: <{$from}>");
  127.         $this->sendCommand("Reply-To: <{$from}>");
  128.         $this->sendCommand("To: <{$this->to}>");
  129.         $this->sendCommand("Subject: {$this->subject}");
  130.         $this->sendCommand("MIME-Version: 1.0");
  131.         $this->sendCommand("Content-Type: text/html; charset={$this->charset}");
  132.         if ($this->contentTransferEncoding) $this->sendCommand("Content-Transfer-Encoding: {$this->contentTransferEncoding}");
  133.         return ;
  134.     }
  135.  
  136.     public function __destruct() {
  137.         if (is_resource($this->smtpConnect)) fclose($this->smtpConnect);
  138.     }
  139. }
  140. ?>

formprocess.php
PHP Código: [ Select ]
<?php
/* Some required variables to configure this page */
 
// Variables not to be sent to you
$blocked = array('submit1');
 
// The email address the result of the form would be sent to.
$adm_email = 'your_email@your_host.com'
 
// The prefix to the mail
$mail_prefix = '<br /><hr /><br />';
 
// The post (signature) to the mail
$mail_post = null;
 
// The title for the message
$title = 'A message was sent to you!';
 
/* The actual code body for sending */
 
// Initiating the body var
$body = $mail_prefix;
 
// Initiating some numeric values that would be incremented in the following loop
$blocked_num = 0;
 
// Building the body for the mail
foreach($_POST as $field_name => $field_value)
    // Building the body for the mail with the correct fields
    if(!in_array($field_name, $blocked))
        $body .= "<strong>{$field_name}</strong>: {$_POST[$field_value]}<br />\r\n";
 
// Ending the body var
$body .= $mail_post;
 
// Trimming the ends of body from any unneeded white spaces
$body = trim($body);
 
// Requiring the SMTP class
require_once 'smtp.class.php';
 
// Initiating the mail object
$mail = new mail();
 
// Sending the message
//if(new mail($_POST['email'], $title, $body, true))
//    echo 'The mail was successfully sent. Thank you for your time!';
//else
//    echo 'There was an error in the mailling service.';
echo $body;
?>
  1. <?php
  2. /* Some required variables to configure this page */
  3.  
  4. // Variables not to be sent to you
  5. $blocked = array('submit1');
  6.  
  7. // The email address the result of the form would be sent to.
  8. $adm_email = 'your_email@your_host.com'
  9.  
  10. // The prefix to the mail
  11. $mail_prefix = '<br /><hr /><br />';
  12.  
  13. // The post (signature) to the mail
  14. $mail_post = null;
  15.  
  16. // The title for the message
  17. $title = 'A message was sent to you!';
  18.  
  19. /* The actual code body for sending */
  20.  
  21. // Initiating the body var
  22. $body = $mail_prefix;
  23.  
  24. // Initiating some numeric values that would be incremented in the following loop
  25. $blocked_num = 0;
  26.  
  27. // Building the body for the mail
  28. foreach($_POST as $field_name => $field_value)
  29.     // Building the body for the mail with the correct fields
  30.     if(!in_array($field_name, $blocked))
  31.         $body .= "<strong>{$field_name}</strong>: {$_POST[$field_value]}<br />\r\n";
  32.  
  33. // Ending the body var
  34. $body .= $mail_post;
  35.  
  36. // Trimming the ends of body from any unneeded white spaces
  37. $body = trim($body);
  38.  
  39. // Requiring the SMTP class
  40. require_once 'smtp.class.php';
  41.  
  42. // Initiating the mail object
  43. $mail = new mail();
  44.  
  45. // Sending the message
  46. //if(new mail($_POST['email'], $title, $body, true))
  47. //    echo 'The mail was successfully sent. Thank you for your time!';
  48. //else
  49. //    echo 'There was an error in the mailling service.';
  50. echo $body;
  51. ?>

form.html
HTML Código: [ Select ]
<form method="post" action="formprocess.php">
<input type="text" name="name1" size="10" />
<input type="text" name="name2" size="10" />
<input type="text" name="name3" size="10" />
<input type="text" name="name4" size="10" />
<input type="text" name="name5" size="10" />
<input type="text" name="name6" size="10" />
<input type="submit" name="submit" value="submit" />
</form>
  1. <form method="post" action="formprocess.php">
  2. <input type="text" name="name1" size="10" />
  3. <input type="text" name="name2" size="10" />
  4. <input type="text" name="name3" size="10" />
  5. <input type="text" name="name4" size="10" />
  6. <input type="text" name="name5" size="10" />
  7. <input type="text" name="name6" size="10" />
  8. <input type="submit" name="submit" value="submit" />
  9. </form>
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Noviembre 10th, 2009, 8:50 am

Bogey,

Gracias por la ayuda y muestras. Yo realmente creo que es dentro de la forma HTML, que tengo que realizar una prueba de unos pocos. También voy a probar sus formas también.

High 5

CgFX
  • Bogey
  • Bogey
  • Genius
  • Avatar de Usuario
  • Registrado: Jul 14, 2005
  • Mensajes: 8212
  • Loc: USA
  • Status: Offline

Nota Noviembre 10th, 2009, 9:22 pm

Sí, la esperanza de que lo tienes fijo en el script :)
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • asking
  • Born
  • Born
  • No Avatar
  • Registrado: Sep 28, 2011
  • Mensajes: 1
  • Status: Offline

Nota Septiembre 28th, 2011, 7:49 pm

Hola CgFX,

Con un par de años de retraso, y tengo el mismo problema! El código es el mismo...

Me gustaría saber si en algún lugar con este código o si definitivamente cambió todo.
¿Muéstreme cómo resolver, por favor?

Muchas gracias
  • Bogey
  • Bogey
  • Genius
  • Avatar de Usuario
  • Registrado: Jul 14, 2005
  • Mensajes: 8212
  • Loc: USA
  • Status: Offline

Nota Septiembre 28th, 2011, 9:08 pm

Él tiene la siguiente forma:
HTML Código: [ Select ]
<form ... >
<input type="text"... />
</form>
<form ... >
<input type="text"... />
</form>
<form ... >
<input type="submit"... />
</form>
  1. <form ... >
  2. <input type="text"... />
  3. </form>
  4. <form ... >
  5. <input type="text"... />
  6. </form>
  7. <form ... >
  8. <input type="submit"... />
  9. </form>

Cuando la forma correcta sería:
HTML Código: [ Select ]
<form ... >
<input type="text"... />
<input type="text"... />
<input type="submit"... />
</form>
  1. <form ... >
  2. <input type="text"... />
  3. <input type="text"... />
  4. <input type="submit"... />
  5. </form>


¿Intenta la solución que yo?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8

Publicar Información

  • Total de mensajes en este tema: 10 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 213 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC