Form Validation Individual Field Validation |
I think it would be a really good idea if you guys could add individual field validation to the form validation class. This would make it extremely easy to use the class to validate forms through AJAX. For example, when a user types in a username in a registration form and they focus away from that field, you could check for whether or not that name is in use with a function that individually validates form fields.
My idea for something like this would look something like this: PHP Code: <?php Then the ajax call would use the URL of something like example.com/register/checkfield/username and the succeeding JS would look something like this: PHP Code: if(usernameResponse != ''){ What are your guys' thoughts on this? |
Messages In This Thread |
Form Validation Individual Field Validation - by ShoeLace1291 - 03-31-2016, 02:56 AM
RE: Form Validation Individual Field Validation - by josepostiga - 04-01-2016, 02:20 AM
RE: Form Validation Individual Field Validation - by ShoeLace1291 - 04-01-2016, 10:40 PM
RE: Form Validation Individual Field Validation - by josepostiga - 04-02-2016, 06:56 AM
|