Welcome Guest, Not a member yet? Register   Sign In
Populate field on update
#1

[eluser]axelf[/eluser]
Hi,

what is the best way in order to populate fields in a form? Now i use the second parameter of set_value. The 2nd parameter is shown in the formfield.

Code:
set_value('fieldname',isset($var) ? $var : '');

Is there a better way to do this?
#2

[eluser]patwork[/eluser]
Why 'echo'?
#3

[eluser]axelf[/eluser]
oh sorry, of course without echo :-). i edit my post.
But is there a better way to to this?




Theme © iAndrew 2016 - Forum software by © MyBB