tenias razon edito andresdzphp tiene la razon pero mifique un poco el codigo
Código PHP:
Ver originalpublic static function open ($action = NULL, $method = 'post', $attrs = NULL)
{
$attrs = getAtrs($attrs);
}
if ($action) {
$action = $action;
}
return "<form action=\"$action\" method=\"$method\" $attrs>";
}
/**
* Etiqueta para cerrar un formulario
*
* @return string
*/
public static function close ()
{
self::$_multipart = FALSE;
return '</form>';
}
ejemplo
Código PHP:
Ver original<div align="center" id="loginbox">
<?php
print form::open('javascript:cuentas.login_ajax();');
?>
<small><?php echo $this->lang->lang('user'); ?>:</small>
<?php
$attributes = array("name" => "usuario", "class" => "loginput blur",
"type" => "text",
"placeholder" => $this->lang->lang('user'),
"id" => "usuario"
);
print form::formInput($attributes);
?>
<table width="300">
<tbody><tr><td align="left">
<small><?php echo $this->lang->lang('pass'); ?>:</small></td></tr><tr></tr></tbody></table>
<?php
$attributes = array("name" => "password", "class" => "loginput blur",
"type" => "password",
"placeholder" => $this->lang->lang('pass'),
"id" => "password"
);
print form::formInput($attributes);
?>
<br>
<table height="40" width="300">
<tbody><tr> <td align="left">
<?php
"class" => "loginbtn",
"type" => "submit",
"value" => "√ Entrar"
);
print form::formInput($attributes);
?>
</td> <td align="right"> <input type="checkbox" id="rem" name="rem" value="true" checked="checked" />
<span><?php echo $this->lang->lang('reminder'); ?></span></td> </tr><tr></tr></tbody></table>
<div class="klear"></div>
<?php print form::close(); ?>