I have a form which contains 2 textboxes and a submit button.
In controller using form validation, I am making both of the textboxes are required means they must contain a value. If none or one of them are empty and Submit button clicks, it will show error.
This is as usual just like everyone do.
But when a user submits a form when only one textbox is filled with any string, it shows error as blah blah field is required.
But the another textbox which was provided with a value by user vanishes its submitted data.
So how to re-populate submitted data in value of textbox ?
In codeigniter, they have inbuilt functions as set_value(), set_select(), set_checkbox()
Fuel uses fieldsets to generate forms, which have the entire form handling, including validation, build in. Although there are form helpers, it's not the primary design goal to keep coding forms by hand.