Welcome Guest, Not a member yet? Register   Sign In
form set_value
#7

[eluser]jairoh_[/eluser]
[quote author="TheFuzzy0ne" date="1369320978"]I'm not quite sure what the problem is here. The default value is only required the first time the form is loaded. Each time the form is submitted, the submitted value is used. So:

Code:
<?php echo form_input('title', set_value('title', $default_value)); ?>

...should work exactly as you expect it to.

Please try it, and get back to us if it's not what you expect.[/quote]
it solved it. thank you for your post.


Messages In This Thread
form set_value - by El Forum - 05-23-2013, 03:03 AM
form set_value - by El Forum - 05-23-2013, 03:32 AM
form set_value - by El Forum - 05-23-2013, 03:58 AM
form set_value - by El Forum - 05-23-2013, 04:30 AM
form set_value - by El Forum - 05-23-2013, 05:29 AM
form set_value - by El Forum - 05-23-2013, 07:56 AM
form set_value - by El Forum - 05-23-2013, 04:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB