Hello,
I am trying to validate the suffix of an email address for a string entered into a form to ensure it contains the correct domain. Some of the code i am currently using looks like this for blank entries
if email="" then
response.redire ct "STS_form.asp?m sg=Please enter your EMAIL!" & querystr
end if
but i want to make sure that the email string contains the text "@wellsfargo.co m" and if not then redirect back to the form page.
So if i were to enter "abc@yahoo. com" i would be redirected back to the form to enter a valid email address. If i entered "abc@wellsfargo .com" then the process would continue to the next if statement.
I have tried to use the search and match statements with no avail. please help!
If you need to see more of my code, please let me know.
Thanks,
I am trying to validate the suffix of an email address for a string entered into a form to ensure it contains the correct domain. Some of the code i am currently using looks like this for blank entries
if email="" then
response.redire ct "STS_form.asp?m sg=Please enter your EMAIL!" & querystr
end if
but i want to make sure that the email string contains the text "@wellsfargo.co m" and if not then redirect back to the form page.
So if i were to enter "abc@yahoo. com" i would be redirected back to the form to enter a valid email address. If i entered "abc@wellsfargo .com" then the process would continue to the next if statement.
I have tried to use the search and match statements with no avail. please help!
If you need to see more of my code, please let me know.
Thanks,
Comment