Codeigniter Why re-populating form on failed validation after submitting?

codeigniter

set_value () not re-populating

In CodeIgniter, I had faced the form validation problem .

Specifically , the problem is set_value () not re-populating.

I ‘ve found what was the problem to read some of the questions and answers of Stackoverflow.

I was in the wrong position to write a set_value ().

I had put the source code . Try to reference .

This article I look forward to helping with someone 🙂

 

 

mistake

controller

view

correct

controller

view

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください