Dean
09-23-2002, 01:26 PM
Hi there
I hope someone can help me.
I am trying to make a redirect page that will check if a session varible exsists and if it does then to redirect to this session variable. but if this session is blank to redirect to this other url.
I have a feedback form that runs over 3 pages that you can choose out out of a list who you send the email to and this form submits using formmail. i have the redirect value set to a page auto submits on loading and this sends a copy of the original form submitted to a different email address. like a CC.
the thing is becuase you can chose who you email the first form to i only want to have the auto submitting page to appear on the first time the user goes through the forms.
I have the auto submiting page setting a session when it is loaded to the value of the thank you page.
So what i am trying to do is set the first redirect url that formmail will point the browser to after the first email is sent to is a page which will check if there is a url in the session variable "Next" and if there is then redirect to it and if not then to redirect to the url for the auto submitting page.
sort of like these to bits of script joined together.
<%
If Request.Session("Next") = "" Then
Response.Redirect("dot.asp")
End If
%>
<%
Response.Redirect(cStr(Session("Next")))
%>
Any sugestions welcome:confused:
I hope someone can help me.
I am trying to make a redirect page that will check if a session varible exsists and if it does then to redirect to this session variable. but if this session is blank to redirect to this other url.
I have a feedback form that runs over 3 pages that you can choose out out of a list who you send the email to and this form submits using formmail. i have the redirect value set to a page auto submits on loading and this sends a copy of the original form submitted to a different email address. like a CC.
the thing is becuase you can chose who you email the first form to i only want to have the auto submitting page to appear on the first time the user goes through the forms.
I have the auto submiting page setting a session when it is loaded to the value of the thank you page.
So what i am trying to do is set the first redirect url that formmail will point the browser to after the first email is sent to is a page which will check if there is a url in the session variable "Next" and if there is then redirect to it and if not then to redirect to the url for the auto submitting page.
sort of like these to bits of script joined together.
<%
If Request.Session("Next") = "" Then
Response.Redirect("dot.asp")
End If
%>
<%
Response.Redirect(cStr(Session("Next")))
%>
Any sugestions welcome:confused: