469,909 Members | 1,630 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

Help: Form Validation

Hi All,

I have a simple asp info request form on my site which sends mail using
JDONT. Is there any way I can redirect the user to a different confirmation
page based on their e-mail domain? example: an****@aol.com would be
redirected to confirmation1.asp while an****@yahoo.com would be redirected
to confirmation2.asp?

Thanks for any help.

-Bill
Jul 19 '05 #1
1 1565
If you have the email address (entered in the form I assume), you can just
parse out the chars after the @.

Something like this (in Jscript):

<%

var email = Request.Form("Sender");
var strs = email.split("@");
var name = strs[0];
var domain = strs[1];

if (domain == "aol.com")
Response.Redirect("conf_aol.asp");
else if (domain == "yahoo.com")
Response.Redirect("conf_yahoo.asp");

%>
"Bill Kearns" <bk*****@nospam.com> wrote in message
news:7F*************@newsread1.news.atl.earthlink. net...
Hi All,

I have a simple asp info request form on my site which sends mail using
JDONT. Is there any way I can redirect the user to a different confirmation page based on their e-mail domain? example: an****@aol.com would be
redirected to confirmation1.asp while an****@yahoo.com would be redirected
to confirmation2.asp?

Thanks for any help.

-Bill

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by qsweetbee | last post: by
14 posts views Thread by JNariss | last post: by
36 posts views Thread by aljamala | last post: by
2 posts views Thread by Chad Lupkes | last post: by
1 post views Thread by lilbit02 | last post: by
6 posts views Thread by smk17 | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.