Custom Validation


Hello, I need some help,

I have no experience of php.

I am using Joomla 2.5 and plugin called enhanced contact form which allows the creation of various forms within Joomla.
I have created a custom form which has many fields but contains a field for an email address and one for a website URL. I need to check that the email domain and the url domain are the same.

ie -
if the url field input is:
Then the email address field input must end

I guess I need to strip out the email domain after the “@” symbol and check if it is contained in the text from the url field. I have no idea how to do this.

Can anybody help?

Thanks in advance.

hello sysins, if your looking for validate email based on domain name please check below url i hope this will be helpful for you.. ~~SR~~