I have the following code on an asp page. the form parameters are passed from another pages submit function
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/OTReporting.asp" -->
<% Response.Buffer = True %>
<!--#include file="inc_top_img.asp" -->
<% if session("LoggedIn"
then %>
<%
dim x
if request.form("subcategoryselect"
=0 then
response.redirect("dataentry.asp?entryerr=1"
end if
if request.form("datebox"
= "" then
response.redirect("dataentry.asp?entryerr=2"
end if
if datediff("d",Now,request.form("datebox"
) > 0 then
response.redirect("dataentry.asp?entryerr=3"
end if
%>
problem is that I want to add a msgbox function in front of each response.redirect, obviously I'm having no luck (otherwise why would I ask?)
I've tried putting
<script language="vbscript">
msgbox "you chose the wrong button"
</script>
but it doesn't work, any ideas?
thanks
Rob Mills
System Analyst
Correctional Services Canada
(all statements are my own and do not reflect on my employer)
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/OTReporting.asp" -->
<% Response.Buffer = True %>
<!--#include file="inc_top_img.asp" -->
<% if session("LoggedIn"
<%
dim x
if request.form("subcategoryselect"
response.redirect("dataentry.asp?entryerr=1"
end if
if request.form("datebox"
response.redirect("dataentry.asp?entryerr=2"
end if
if datediff("d",Now,request.form("datebox"
response.redirect("dataentry.asp?entryerr=3"
end if
%>
problem is that I want to add a msgbox function in front of each response.redirect, obviously I'm having no luck (otherwise why would I ask?)
I've tried putting
<script language="vbscript">
msgbox "you chose the wrong button"
</script>
but it doesn't work, any ideas?
thanks
Rob Mills
System Analyst
Correctional Services Canada
(all statements are my own and do not reflect on my employer)