[eluser]jairoh_[/eluser]
Code:
[b]form_hidden()[/b]
Lets you generate hidden input fields. You can either submit a name/value string to create one field:
form_hidden('username', 'johndoe');
// Would produce:
<input type="hidden" name="username" value="johndoe" />
Or you can submit an associative array to create multiple fields:
$data = array(
'name' => 'John Doe',
'email' => '[email protected]',
'url' => 'http://example.com'
);
echo form_hidden($data);
// Would produce:
<input type="hidden" name="name" value="John Doe" />
<input type="hidden" name="email" value="[email protected]" />
<input type="hidden" name="url" value="http://example.com" />
why would it produce:
Code:
<input type="hidden" name="name" value="John Doe" />
<input type="hidden" name="email" value="[email protected]" />
<input type="hidden" name="url" value="http://example.com" />
when it should poduce:
Code:
<input type="hideen" name="John Doe" email="[email protected]" url="http://example.com" />
i'm still exploring CI. if someone can explain, please do it.