ho un form in ASP dove per eccedere si immette una password e visualizza poi un modulo risultati di un DB , il mosulo deve scorre ovv. tutte le pagina, ma all'iuscita cliccando sull'icona home, deve resettare la Password
come è possibile farlo?
codice :
<%
Response.Buffer = True
STATUS = Request("STATUS")
PASSWORD = Request("PASSWORD")
If STATUS = "CHECKEM" Then
If PASSWORD = "123456" THEN
Session("PASSWORDACCESS") = "Yes"
End If
End If
If Session("PASSWORDACCESS") <> "Yes" Then
%>
<HTML>
<meta name="Microsoft Theme" content="soccer 1011, default">
<BODY>
<form method="POST" action="feedback_vis.asp">
<div align="center"><center>
<font color="#0000B7" face="Century Gothic" size="2">
</font><font face="Arial">
PASSWORD : </font>
<input name="PASSWORD" type="password" class="azzurro" size="10">
<input type="hidden" value="CHECKEM" Name="STATUS" >
<input type="submit" class="azzurro" value="Login">
</p>
</center></div>
</form>
</BODY>
</HTML>
<%
Response.End
End If
%>
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit.
FP_LCID = 1040 %>
<meta http-equiv="Content-Language" content="it">
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Visione Dati</title>
<link href="../../main/default_file/ie5_1.css" rel="stylesheet" type="text/css">
<link href="../../main/default_file/ie5.css" rel="stylesheet" type="text/css">
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Visione Dati</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
QUI VI E? IL MODDULO DB OMESSO PER FACILITA? DI COMPRENSIONE
<body>
<p style="text-align: center"></p>
<p style="text-align: center; margin-top: 0; margin-bottom: 0">C H I U D I
</p>
<p style="text-align: center">[b]
<font color="#0000B7" face="Century Gothic" size="2">
<p style="text-align: center"></p>
</body>
</html>

Rispondi quotando