Welcome Guest, Not a member yet? Register   Sign In
Form submit using wrong path
#5

[eluser]williamparry[/eluser]
I'm a bit confused about how the validation ties in with post. I have:

Code:
$rules['firstName'] = "trim|required|xss_clean";

If I do
Code:
$this->input->post('firstName');

Will that give me the post variable with the cleaning and validation done?

I've got a registration model set up that is going to deal with the adding and I am not sure how to go about passing the information from the controller to the model. At the moment I am calling the model and running my model's adding function with the argument being $_POST but I don't need some of the fields. Should I do this all by hand and also, can I pass the validated and sanitised post data into the model, rather than raw $_POST without manual coding?

Cheers


Messages In This Thread
Form submit using wrong path - by El Forum - 01-12-2008, 04:00 PM
Form submit using wrong path - by El Forum - 01-12-2008, 04:13 PM
Form submit using wrong path - by El Forum - 01-12-2008, 04:22 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:19 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:25 PM
Form submit using wrong path - by El Forum - 01-12-2008, 05:41 PM
Form submit using wrong path - by El Forum - 01-12-2008, 07:52 PM
Form submit using wrong path - by El Forum - 01-12-2008, 10:23 PM
Form submit using wrong path - by El Forum - 01-13-2008, 02:45 AM
Form submit using wrong path - by El Forum - 01-13-2008, 03:41 AM
Form submit using wrong path - by El Forum - 01-13-2008, 06:16 AM
Form submit using wrong path - by El Forum - 01-13-2008, 11:28 PM
Form submit using wrong path - by El Forum - 01-13-2008, 11:48 PM
Form submit using wrong path - by El Forum - 01-13-2008, 11:50 PM
Form submit using wrong path - by El Forum - 01-14-2008, 12:06 AM
Form submit using wrong path - by El Forum - 01-14-2008, 12:25 AM
Form submit using wrong path - by El Forum - 01-14-2008, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB