The following program is a general program for dynamic management. It is very easy to explain!
If username = & quot; admin & quot; and password = & quot; admin & quot; then
Remember to change the usernames and passwords of the two admin accounts!
Login. ASP
& Lt; HTML>
& Lt; head>
& Lt; title> Administrator Logon & lt;/title>
& Lt; link rel = & quot; stylesheet & quot; href =.../& quot; DOWNLOAD. CSS & quot;>
& Lt;/head>
& Lt; body>
& Lt; div align = & quot; center & quot;> & lt; center>
& Lt; table border = & quot; 0 & quot; cellspacing = & quot; 1 & quot; width = & quot; 90% & quot;>
& Nbsp; & lt; tr>
& Nbsp; & lt; td> & lt; form method = & quot; post & quot;
Action = & quot; chklogin. ASP & quot;>
& Nbsp; & lt; table width = & quot; 45% & quot; border = & quot; 1 & quot;
Cellspacing = & quot; 0 & quot; cellpadding = & quot; 1 & quot; align = & quot; center & quot;
& Nbsp; bordercolordark = & quot; # ecf5ff & quot;
Bordercolorlight = & quot; # 6699cc & quot;>
& Nbsp; & lt; tr>
& Nbsp; & lt; td> & lt; table
Width = & quot; 100% & quot; border = & quot; 0 & quot; cellspacing = & quot; 1 & quot;
Cellpadding = & quot; 1 & quot;>
& Nbsp; & lt; tr>
& Nbsp; & nbsp;
& Nbsp; & lt; td width = & quot; 33% & quot;
Align = & quot; right & quot; height = & quot; 30 & quot;> User name: & lt;/td>
& Nbsp; & nbsp; & lt; td
Width = & quot; 67% & quot;> & lt; input name = & quot; username & quot; maxlength = & quot; 20 & quot;
Class = & quot; smallInput & quot; size = & quot; 20 & quot;> & lt;/td>
& Nbsp; & lt; /tr>
& Nbsp; & lt; tr>
& Nbsp; & nbsp;
& Nbsp; & lt; td width = & quot; 33% & quot;
Align = & quot; right & quot; height = & quot; 30 & quot;> password: & lt;/td>
& Nbsp; & nbsp; & lt; td
Width = & quot; 67% & quot;> & lt; input type = & quot; password & quot; name = & quot; password & quot;
Maxlength = & quot; 16 & quot; class = & quot; smallInput & quot;
& Nbsp; & nbsp; size = &
Quot; 20 & quot;> & lt;/td>
& Nbsp; & lt; /tr>
& Nbsp; & lt; tr>
& Nbsp; & nbsp; & lt; td
Colspan = & quot; 2 & quot; height = & quot; 15 & quot;> & lt;/td>
& Nbsp; & lt; /tr>
& Nbsp; & lt;/table>
& Nbsp; & lt;/td>
& Nbsp; & lt;/tr>
& Nbsp; & lt; tr align = & quot; center & quot;>
& Nbsp; & lt; td
Height = & quot; 40 & quot;>
& Nbsp; & nbsp;
& Nbsp; & lt; input type = & quot; submit & quot; name = & quot; Submit & quot; value = & quot; true
Set & quot; class = & quot; buttonface & quot;>
& Nbsp; & amp; nbsp;
& Nbsp; & nbsp;
& Nbsp; & lt; input type = & quot; reset & quot; name = & quot; Submit2 & quot; value = & quot; weight
Write & quot; class = & quot; buttonface & quot;>
& Nbsp; & nbsp;
& Nbsp; & lt;/td>
& Nbsp; & lt;/tr>
& Nbsp; & lt;/table>
& Nbsp; & lt;/form>
& Nbsp; & lt; p align = & quot; center & quot;> & lt;/td>
& Nbsp; & lt;/tr>
& Lt;/table>
& Lt;/center> & lt;/div>
& Lt;/body>
& Lt;/HTML>
__________________________________________________________________
Chklogin. ASP
& Lt; %
Dim SQL
Dim rs
Dim seekerrs
Dim founduser
Dim username
Dim companyid
Dim password
Dim errmsg
Dim founderr
Founderr = false
FoundUser = false
Username = request. form (& quot; username & quot ;)
Password = request. Form (& quot; password & quot ;)
If username = & quot; then
& Nbsp; response. redirect & quot; index. ASP & quot;
End if
If password = & quot; then
& Nbsp; response. redirect & quot; index. ASP & quot;
End if
If username = & quot; admin & quot; and password = & quot; admin & quot; then
& Nbsp; response. cookies (& quot; adminok & quot;) = true
& Nbsp; response. redirect & quot; manage. ASP & quot;
Else
& Nbsp; response. redirect & quot; index. ASP & quot;
End if
%>