Can someone please provide some advise on how to go about creating custom validation rules for Codeigniter.
The website I am working on is for university students and only allows users to register if they use their university email address.
Here is an example of the type of validation I am trying to achieve:
Only allow emails that end with:
array(
'0' => '@uni-email-1.com',
'1' => '@uni-email-2.com',
'2' => '@uni-email-3.com',
'3' => '@uni-email-4.com',
);
I am still quite new to codeigniter and I am not sure how to create this type of validation.
Any assistance is very much appreciated!
Thanks
Sure, how’s this?