Ciao raga come stai?...
vi chiedo una mano perchè sto impantanato da giorni nella creazione di un'area riservata in un sito web dell'azienda nella quale sto facendo una stage. Sto seguendo questa guida di Microsoft http://support.microsoft.com/kb/825498/it ho seguito anche una di Aruba dove mi da tutto preconfezionato ma incappo nel solito problema, l'area di "logon" non mi funziona...non apre nulla
questo è il codice della mia pagina:
<% @language="vbscript" %>
<%
' Was this page posted to?
If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
' If so, check the username/password that was entered.
If ComparePassword(Request("UID"),Request("PWD")) Then
' If comparison was good, store the user name...
Session("UID") = Request("UID")
' ...and redirect back to the original page.
Response.Redirect Session("REFERRER")
End If
End If
%>
<html>
<head><title>Logon Page</title>
<style>
body { font-family: arial, helvetica }
table { background-color: #cccccc; font-size: 9pt; padding: 3px }
td { color: #000000; background-color: #cccccc; border-width: 0px }
th { color: #ffffff; background-color: #0000cc; border-width: 0px }
</style>
</head>
<body bgcolor="#FFFFFF" text="#008000">
<h3 align="center"><font color="#000000"> </font></h3>
<div align="center"><center>
<form action="<%=LOGON_PAGE%>" method="POST">
<table border="2" cellpadding="2" cellspacing="2" height="135">
<tr>
<th colspan="4" align="left">Enter User Name and Password</th>
</tr>
<tr>
<td> </td>
<td colspan="2" align="left">Please insert your USER and PASSWORD</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left"></td>
<td align="left"><%=Request.ServerVariables("SERVER_NA ME")%>  </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left"><font color="#0000FF">User Name</font></td>
<td align="left"><input name="UID" type="text" size="20"></td>
<td> </td>
</tr>
<tr>
<td><font color="#0000FF"> </font></td>
<td align="left"><font color="#0000FF">Password</font></td>
<td align="left"><input name="PWD" type="password" size="20"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="center"><font color="#FF0000"><input type="submit" value="LOGON"></font></td>
<td> </td>
</tr>
</table>
</form>
</center></div>
</body>
</html>

Rispondi quotando

