Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logon pages

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to make a logon page in a front page website that uses an access data base as its back end....any suggestions???
 
The book Instant ASP Scripts (GregBuczek Ch. 12) has a great ASP Login.

Below is another that I pirated from somewhere using SSN and Password.

Access table name is PassWordTable

<%@ Language=VBScript %>
<%
if not isempty(Request.Form(&quot;Enter&quot;)) then
set conn = server.createobject (&quot;adodb.connection&quot;)
conn.open &quot;dsnname&quot;, &quot;yourusername&quot;, &quot;yourpassword&quot;
set RSEmp = conn.Execute(&quot;select USERID from PassWordTable where &quot; _
& &quot;Password = '&quot; & Request.Form(&quot;Password&quot;) & &quot;' and &quot; _
& &quot;SSN = '&quot; & Request.Form(&quot;SSN&quot;) & &quot;'&quot;)
if RSEmp.EOF then
TheMessage = &quot;SSN or Password were not found.&quot;
else
Response.Redirect &quot;./html/somewhereelse.asp?EmpID=&quot; & RSEmp(&quot;USERID&quot;)
end if
else
TheMessage = &quot;First you must Log In to the page.&quot;
end if
%>

Create a Form with Inputs type=texts for SSN and type= password for the Password.
Eric

Starting GA/AL Focus User Group (FUSE) in Atlanta. See IBI website for usergroup info or contact me at eric.searing@wcom.com.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top