CodeIgniter Forums
form validation required - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: form validation required (/showthread.php?tid=257)



form validation required - bertansh - 11-14-2014

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.


RE: form validation required - tapan.thapa - 11-14-2014

No...

This is server side function.

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


RE: form validation required - bertansh - 11-15-2014

(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.