Annonceindlæg fra itavis
03. december 2001 - 20:57
#3
Måske kan det her bruges ?? <% If Session(\"Access_Status\") = \"\" _ AND Request.QueryString(\"test\") <> 1 then Session(\"Access_Status\") = \"Test\" Response.Redirect \"login.asp?test=1\" ElseIf Session(\"Access_Status\") = \"\" _ AND Request.QueryString(\"test\") = 1 then Response.Redirect \"cookie_error.asp\" End If If LCase(Trim(Request(\"User_Name\"))) = \"user\" _ AND Request(\"Password\") = \"password\" then Session(\"Access_Status\") = \"Granted\" Response.Redirect \"Content.asp\" ElseIf Request(\"User_Name\") <> \"\" _ OR Request(\"Password\") <> \"\" then Session(\"Access_Status\") = \"Denied\" Else Session(\"Access_Status\") = \"Test\" End If %> <html> <head> <meta http-equiv=\"Content-Language\" content=\"en-us\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"> <meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\"> <meta name=\"ProgId\" content=\"FrontPage.Editor.Document\"> <title>Login Page</title> </head> <body> <div align=\"center\"> <center> <table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"60%\" style=\"background-color: #C0C0C0; color: #000000; border: 4 ridge #000000; margin-top: 2; margin-bottom: 2\"> <tr> <td width=\"100%\"> <p style=\"margin-top: 2; margin-bottom: 2\"><font size=\"4\" face=\"Arial\"><b> Login:</b></font></p> <% If Session(\"Access_Status\") = \"Denied\" then %> <p style=\"margin-top: 2; margin-bottom: 2\" align=\"center\"><font size=\"2\" face=\"Arial\" color=\"#FF0000\">*** Brugernavn og/eller adgangskode var forkert. Prøv igen. ***</font></p> <% End If %> <form method=\"POST\" action=\"login.asp\"> <p style=\"margin-top: 2; margin-bottom: 2\"><font face=\"Arial\">User Name: <input type=\"text\" name=\"User_Name\" size=\"20\"></font></p> <p style=\"margin-top: 2; margin-bottom: 2\"><font face=\"Arial\">Password: <input type=\"password\" name=\"Password\" size=\"20\"></font></p> <p style=\"margin-top: 2; margin-bottom: 2\"> </p> <p style=\"margin-top: 2; margin-bottom: 2\" align=\"center\"><input type=\"submit\" value=\"Login\" name=\"Login\" style=\"background-color: #FFFFFF; font-family: Arial Black; font-size: 12pt; color: #000000\" tabindex=\"3\"> <input type=\"reset\" value=\"Reset\" name=\"Reset\" style=\"background-color: #FFFFFF; color: #000000; font-family: Arial Black; font-size: 12pt\" tabindex=\"4\"></p> </form> </td> </tr> </table> </center> </div> </body> </html>