Welcome Guest, Not a member yet? Register   Sign In
passing data from one controller function to another
#6

[eluser]daelsepara[/eluser]
if you have already validated the data, there is little need for it on redirection to the next controller, perhaps just a check if it's empty or not. Of course, you are still encouraged to do some other checks, after validation (whether the value's relevant to the next controller, but you may do it before passing it).

Also, You can modify your

Code:
$submitone = $this->input->post('varone');
$submittwo = $this->input->post('vartwo');

codes to:

Code:
$submitone = $this->input->post('varone',TRUE);
$submittwo = $this->input->post('vartwo',TRUE);

to pass them through an XSS filter before setting them as flashdata.


Messages In This Thread
passing data from one controller function to another - by El Forum - 06-14-2010, 08:57 PM
passing data from one controller function to another - by El Forum - 06-14-2010, 09:40 PM
passing data from one controller function to another - by El Forum - 06-14-2010, 10:16 PM
passing data from one controller function to another - by El Forum - 06-14-2010, 10:57 PM
passing data from one controller function to another - by El Forum - 06-15-2010, 08:33 AM
passing data from one controller function to another - by El Forum - 06-15-2010, 07:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB