CodeIgniter Forums
Form with a lot of input fields, should i use all $this->input->post( or - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Form with a lot of input fields, should i use all $this->input->post( or (/showthread.php?tid=27426)



Form with a lot of input fields, should i use all $this->input->post( or - El Forum - 02-10-2010

[eluser]123wesweat[/eluser]
1/ is there a quicker way???

Code:
$data = array('user' => $this->input->post('user'),
etc.
)

2/ another question about set_value. I notice only input fields with rules have their value set other fields are empty when a form doesn't pass form_validation->run()

3/is one controller to display a form and validation a form good pratice??

4/should i always use trim|....|xss_clean for all input fields storing in a DB??