Welcome Guest, Not a member yet? Register   Sign In
Form Hidden
#3

[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.'


Messages In This Thread
Form Hidden - by El Forum - 05-02-2010, 08:45 PM
Form Hidden - by El Forum - 05-03-2010, 12:49 PM
Form Hidden - by El Forum - 05-03-2010, 01:55 PM
Form Hidden - by El Forum - 05-03-2010, 07:26 PM
Form Hidden - by El Forum - 05-03-2010, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB