Sign in to follow this  

[web] Beginner ASP help

Recommended Posts

Hi, I have just started learning javascript/ASP and I am trying to get a simple login system working from my Apache web server, however none of the asp commands seem to be working. Here is the main login page: <html> <body BGCOLOR="#DDDDDD"> <p align=center> <form action="CheckLogin.asp" method=post name=login_form>

Please enter your username and password

<table> <tr><td>UserName:</td><td><input type=text name=username_text></td></tr> <tr><td>Password:</td><td><input type=password name=password_text></td></tr> </table>
<input id=submit1 type=submit value="Login" name=login_button>

Click here to create a new account </form>

</body> </html> Here is the 'CheckLogin.asp' file: <%@ language=javascript %> <html> <head> <% var username=Request.Form("username_text"); var password=Request.Form("password_test"); %> </head> <body>

Username:<%=username%> Password:<%=password%>

</body> </html> When I try and log in all I see is "Username: Password: " and the values for the username/password are not passed to the asp file. Can anyone tell me where I am going wrong? Thanks

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this