[eluser]SSgt Dodger USMC[/eluser]
I have an email form that I am validating, and I need to be able to check and see what domain users are typing in. for example, I want users to only be able to unter emails that end in server.example.com. This means that people from my.server.example.com and your.server.example.com would be valid, but other.server.com (or anything else) would not.
I currently have:
Code:
$this->form_validator->set_rules('email1', 'Email Address','required|valid_email');
and that works for the email, but I need to allow select domains only.
Can anyone help me out, as I am not the greatest programmer...
Any help is greatly appreciated!