CodeIgniter's form_hidden

Posted by 01010011 on Stack Overflow See other posts from Stack Overflow or by 01010011
Published on 2010-05-03T03:52:05Z Indexed on 2010/05/03 3:58 UTC
Read the original article Hit count: 377

Filed under:
|

Hi,

How do I achieve this:

//view.php
<input type="hidden" name="Name" value="<?php echo $variable->id; ?>

using CodeIgniter’s form_hidden helper:

//view.php
<?php echo form_hidden('Name','<?php echo $variable->id;') ?>

The first one works fine when I display $variable->id but CI's form_hidden doesn't work.

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php