Welcome Guest, Not a member yet? Register   Sign In
form validation required
#1

Does a statement such as

Code:
$this->form_validation->set_rules('username', 'Username', 'required')


require the user's browser to support HTML 5?

I've been doing my validation by hand, since required is an HTML 5 attribute, and I want to support all users, even those with older browsers.
Reply
#2

No...

This is server side function.

The form_validation happens when user has posted (Pressed submit button on your form) something on your method.
Reply
#3

(11-14-2014, 11:22 PM)tapan.thapa Wrote: No...

This is server side function.

The form_validation happens when user has posted (Pressed submit button on your form) something on your method.

Thanks, tapan. That will save me a lot of coding next time.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB