Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ask a password from a ASP page...
Message
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00322010
Message ID:
00322043
Views:
25
Hi JR,

>I am starting to code in ASP and on top of the textbox for the password I like to hardcode a password in the asp page and check if the user enter the right password. If he did then we jump to a URL otherwire we do notting.

Sure. Go to http://24.14.98.235/jr.htm and type in a password. You can view the source to see what I have done in that page. It calls jr.asp, and the code for that is this:
< %If Request.Form("Password") = "Mike" then  
	Response.Redirect("/right.htm")
else
	Response.Redirect("/wrong.htm")
End if% >
That will show you the Right! page is you type in Mike, otherwise you will get the Wrong! page. This is cool stuff, I'm learning too :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform