I have an asp that is checking a username and password and if found redirecting to another asp (welcome.asp). I want to pass some hidden text to welcome.asp so that when it executes it will only show the details for a valid user:
welcome.asp reads:
<%
gre = request.form("h1")
if ucase(gre) = "BLACK_ON_GREEN" then
response.write("<HTML><BODY><BR>Hello world</body></html>")
else
response.redirect "noway.asp"
end if
%>
The previous ASP reads:
response.write("<html><form method='post' action=''><input name='h1' type='hidden' VALUE='Black_on_green'></form></html>)
response.redirect "welcome.asp"
When I am redirected to welcome.asp it then redirects me to noway.asp when it should welcome me. What am I doing wrong?
welcome.asp reads:
<%
gre = request.form("h1")
if ucase(gre) = "BLACK_ON_GREEN" then
response.write("<HTML><BODY><BR>Hello world</body></html>")
else
response.redirect "noway.asp"
end if
%>
The previous ASP reads:
response.write("<html><form method='post' action=''><input name='h1' type='hidden' VALUE='Black_on_green'></form></html>)
response.redirect "welcome.asp"
When I am redirected to welcome.asp it then redirects me to noway.asp when it should welcome me. What am I doing wrong?