I have a form that I created a hidden text field. I want to be able to send the person to an error page if that field has some kind of value, nothing specific, just as long as its not empty. I tried a js code in the validation file but that did not work. I tried to set up an if statement in the process file but I don't know what I am doing or did wrong. Please someone help!!
If the hidden field is NOT empty, how do I redirect?
Collapse
X
-
Tags: None
-
Hi maryjane,
Try this in your ASP page.
Hope this helps,Code:If Not Request("HiddenFieldName") = "" Then Response.Redirect("ErrorPage.asp")
Dr B -
Originally posted by DrBunchmanHi maryjane,
Try this in your ASP page.
Hope this helps,Code:If Not Request("HiddenFieldName") = "" Then Response.Redirect("ErrorPage.asp")
Dr B
THANK YOU!!! It worked!!
mjComment
Comment