ScottNomus
Programmer
I have a form that user puts in his or her Username and password. They then submit the page and the database is subposed to validate it here is the code for the user login
<html>
<head>
<title>Frm_Password</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<div align="center">
<p><img src="../images/Nomus%20Logo%20.JPG" width="335" height="256"></p>
<Form Method=Post Action="">
<p>User Name
<input type="text" name="textfield">
</p>
<p>Password
<input type="text" name="textfield2">
</p>
</form>
<form name="form2" >
<input type="submit" name="Submit" value="LogIn">
<input type="submit" name="Submit2" value="Reset">
</form>
<p> </p>
</div>
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","Admin",""
Set Session("WebCustomer_conn" = conn
End If
%>
<SCRIPT LANGUAGE=VBScript>
<%
If IsObject(Session("RS_Frm_Password_customer") Then
Set tempRS = Session("RS_Frm_Password_customer"
Else
set RSUsername = "SELECT User_table.Company, User_table.CompanyNum FROM User_table ORDER BY User_table.Company "
Set tempRS = Server.CreateObject("ADODB.Recordset"
tempRS.Open sql, conn, 3, 3
Set Session("RS_Frm_Password_customer" = tempRS
tempRS.MoveFirst
End If
tempRS.MoveLast
%>
<body bgcolor="#FFFFFF">
</body>
</html>
****END****
I also need to know how to put astriks in the password field instead of showing the password
Thanks
<html>
<head>
<title>Frm_Password</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<div align="center">
<p><img src="../images/Nomus%20Logo%20.JPG" width="335" height="256"></p>
<Form Method=Post Action="">
<p>User Name
<input type="text" name="textfield">
</p>
<p>Password
<input type="text" name="textfield2">
</p>
</form>
<form name="form2" >
<input type="submit" name="Submit" value="LogIn">
<input type="submit" name="Submit2" value="Reset">
</form>
<p> </p>
</div>
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","Admin",""
Set Session("WebCustomer_conn" = conn
End If
%>
<SCRIPT LANGUAGE=VBScript>
<%
If IsObject(Session("RS_Frm_Password_customer") Then
Set tempRS = Session("RS_Frm_Password_customer"
Else
set RSUsername = "SELECT User_table.Company, User_table.CompanyNum FROM User_table ORDER BY User_table.Company "
Set tempRS = Server.CreateObject("ADODB.Recordset"
tempRS.Open sql, conn, 3, 3
Set Session("RS_Frm_Password_customer" = tempRS
tempRS.MoveFirst
End If
tempRS.MoveLast
%>
<body bgcolor="#FFFFFF">
</body>
</html>
****END****
I also need to know how to put astriks in the password field instead of showing the password
Thanks