• Advertisement
Sign in to follow this  

[web] Beginner ASP help

This topic is 4031 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement