How does a form validation know about the form? |
The form validation, on run, looks for the names given in the rules you set for matching inputs in the S_POST array. Your form may or may not actually submit those inputs.
For instance you set rules: PHP Code: $this->form_validation->set_rules('name', 'User Name', 'required|min_length[3]); If the $_POST array contains more fields, they are not referred to unless you have set a rule. It needs know nothing about your form, your view, or what you do with that data. Hope that helps, Paul. I just binged and this was the first result - I hope it helps: http://www.jquery-az.com/php-post-an-ass...uery-ajax/ |
Messages In This Thread |
How does a form validation know about the form? - by ccw - 06-12-2017, 10:44 AM
RE: How does a form validation know about the form? - by PaulD - 06-12-2017, 10:57 AM
RE: How does a form validation know about the form? - by ccw - 06-12-2017, 03:27 PM
|