Form Hidden - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Form Hidden (/showthread.php?tid=30081) |
Form Hidden - El Forum - 05-02-2010 [eluser]01010011[/eluser] EDIT: Code: form_hidden('Name',$variable->id); END OF EDIT Hi, I am trying to do this: Code: //view.php with CI's form_hidden helper: Code: //view.php Nothing prints when I use the CI helper function but the first input type works fine. Any assistance will be appreciated. Form Hidden - El Forum - 05-03-2010 [eluser]Thea_G[/eluser] I just wrap my input forms inside a div tag and make the div tag invisible, like this <div id="id_" name="id_" style="display:none"> (Labels, buttons and input forms can go here) </div> To turn it back on you just need to get the element by id and then set display:inline or display:block Form Hidden - El Forum - 05-03-2010 [eluser]Zack Kitzmiller[/eluser] Don't call the PHP Processor from inside the PHP Processor. Don't use quotes either. Just access the variable directly. Code: <?php echo form_hidden('name', $variable->id); ?> And I'd like to say: [quote author="Thea_G" date="1272930540"]I just wrap my input forms inside a div tag and make the div tag invisible, like this <div id="id_" name="id_" style="display:none"> (Labels, buttons and input forms can go here) </div> To turn it back on you just need to get the element by id and then set display:inline or display:block[/quote] The OP wasn't talking about temporarily hiding form elements that aren't being used. They were talking about input type 'hidden.' Form Hidden - El Forum - 05-03-2010 [eluser]Thea_G[/eluser] oh...Zack..you're right. Sorry. Form Hidden - El Forum - 05-03-2010 [eluser]Zack Kitzmiller[/eluser] Not a problem. |