Hi ..
I am new here and i really need help .. In ASP
This is the form code
<form name="login" method="post" action="confirm.asp">
<div align="center">
<p><br>
<strong><span class="style16">Please insert your username and password to log into the system. </span></strong></p>
<table width="312" border="1" cellspacing="3" bordercolor="#000000">
<tr>
<td width="92"><span class="style15">Username:</span></td>
<td width="195" colspan="2"><input type=text name="username" size="25"></td>
</tr>
<tr>
<td><span class="style15">Password:</span></td>
<td colspan="2"><input type=text name="password" size="25"></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input name="Submit" type="submit" value="Submit">
</div></td>
</tr>
</table>
<br>
</div>
</form>
This is the confirm.asp
<%
DIM strUsername, strPassword
strUsername = Request.Form("username")
strPassword = Request.Form("password")
IF strUsername <> "" AND strPassword <> "" THEN
' Process the form as you like here
' For example enter form to your database or send it via email
ELSE
Response.Write "<p>Please click back on your browser and complete the following fields:</p>"
IF strUsername <> "" THEN
ELSE
Response.Write "<b>• Username</b><br>"
END IF
IF strPassword<> "" THEN
ELSE
Response.Write "<b>• Password</b><br>"
END IF
END IF
%>
But it doesnt work .. All i want is to check if the username and password match then they willl log in