default.asp example
<%@ Language=VBScript %>
Opening Page
Let's go to the form
form.asp example
<%@ Language=VBScript %>
<%
Response.Buffer = True
' sets header and footer
dim header, footer
header = "" & VBCrLf
header = header & "" & VBCrLf
header = header & "" & VBCrLf
header = header & "" & VBCrLf
footer = "" & VBCrLf
footer = footer & ""
if NOT isEmpty(Request.Form("searchRequestSubmit")) then
' process code and sub routines here
' code to set session variable and redirect to confirm.asp
Session("GoForward") = "True"
Response.Redirect "redirect.asp"
else
Response.Write header
Response.Write "" & VBCrLf
Response.Write footer
end if
%>
redirect.asp example
<%@ Language=VBScript %>
<%
Response.Buffer = True
' checks for empty session variable,
' otherwise display the page which refreshes to confirmcation.asp
if isEmpty(Session("GoForward")) then
Response.Redirect "default.asp"
else%>
<%end if%>
confirmation.asp example
<%@ Language=VBScript %>
<%
Response.Buffer = True
' checks for empty session variable,
' and redirects to main page
if isEmpty(Session("GoForward")) then
Response.Redirect "default.asp"
else
' if session variable is present, display this code
%>
|
Thank you. Your request has been submitted to the IT Department.
Your confirmation number is xxx. Please refer to this number
when contacting the IT Department. You can view the status of your
request by using the status page.
|
<%
end if
' this will kill the session variable
Session.Abandon
' You could also use:
' Session("GoForward") = ""
%>