0
我有一个控制器,它加载的看法是这样的: - 在功能simpleForm我如何保留表单值?
class A extends Controller{
public function simpleForm(){
//this generates the form
}
public function simpleFormSubmitted(){
//simple form is submitted here. Here i perform validation and if validation fails i
//want to display simpleform again with all the values inputted by the user as it is and
//if validation succeeds i want to redirect to some other page.
// I am using simple HTML to generate the form and not the formhelper of codeigniter
//because i am more comfortable with HTML rather than remembering the syntax of codeigniter.
}
}
感谢提前:)