CodeIgniter's set_value() not re-populating

前端 未结 4 711
攒了一身酷
攒了一身酷 2020-12-20 20:48

I\'ve checked and re-checked my code, referencing the CI docs and other posts throughout the web, but I am unsuccessful at implementing the set_value() method for re-populat

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 21:01

    Permits you to set the value of an input form or textarea. You must supply the field name via the first parameter of the function. The second (optional) parameter allows you to set a default value for the form. Example:

    
    

    The above form will show "0" when loaded for the first time.

提交回复
热议问题