Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/09/2011, 14:13
thehack
 
Fecha de Ingreso: abril-2010
Mensajes: 151
Antigüedad: 14 años
Puntos: 1
Respuesta: error en strstr

tenias razon edito andresdzphp tiene la razon pero mifique un poco el codigo

Código PHP:
Ver original
  1. public static function open ($action = NULL, $method = 'post', $attrs = NULL)
  2.     {
  3.         if (is_array($attrs)) {
  4.             $attrs = getAtrs($attrs);
  5.         }
  6.         if ($action) {
  7.             $action =  $action;
  8.         }
  9.         return "<form action=\"$action\" method=\"$method\" $attrs>";
  10.     }
  11.  
  12.  /**
  13.      * Etiqueta para cerrar un formulario
  14.      *
  15.      * @return string
  16.      */
  17.     public static function close ()
  18.     {
  19.         self::$_multipart = FALSE;
  20.         return '</form>';
  21.     }

ejemplo

Código PHP:
Ver original
  1. <div align="center" id="loginbox">  
  2.  
  3. <?php
  4. print form::open('javascript:cuentas.login_ajax();');
  5. ?>
  6.  
  7.  <small><?php echo  $this->lang->lang('user'); ?>:</small>
  8.  <?php
  9.                                        $attributes = array("name" => "usuario",
  10.                                            "class" => "loginput blur",
  11.                                            "type" => "text",
  12.                                            "placeholder" => $this->lang->lang('user'),
  13.                                            "id" => "usuario"
  14.                                            );
  15.                                        print form::formInput($attributes);
  16.  ?>                                      
  17.   <table width="300">
  18.   <tbody><tr><td align="left">
  19.  <small><?php echo  $this->lang->lang('pass'); ?>:</small></td></tr><tr></tr></tbody></table>
  20.  <?php
  21.                                        $attributes = array("name" => "password",
  22.                                            "class" => "loginput blur",
  23.                                            "type" => "password",
  24.                                            "placeholder" => $this->lang->lang('pass'),
  25.                                            "id" => "password"
  26.                                            );
  27.                                        print form::formInput($attributes);
  28.  ?>  
  29.  
  30.  <br>
  31.  <table height="40" width="300">
  32.  <tbody><tr> <td align="left">
  33.              <?php
  34.                                        $attributes = array(
  35.                                            "class" => "loginbtn",
  36.                                            "type" => "submit",
  37.                                            "value" => "&radic; Entrar"
  38.                                            );
  39.                                        print form::formInput($attributes);
  40.  ?>  
  41.  
  42.   </td> <td align="right">   <input type="checkbox" id="rem" name="rem" value="true" checked="checked" />
  43.  <span><?php echo  $this->lang->lang('reminder'); ?></span></td> </tr><tr></tr></tbody></table>
  44.  <div class="klear"></div>
  45.  
  46.  <?php print form::close(); ?>