Allora dispongo di un'area registrazione utenti presa dai v/s script di html.it perfettamente funzionante, il file default.asp inizia con questo script qui sotto:
<% Server.Execute("header.asp") %>
<title><%=pageTitle%> - Gestione Utenti</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Per
aggiornare il tuo profilo, clikka su Modifica Profilo.</p>
<% Server.Execute("footer.asp") %>
il file di sicurezza è
Fino qui tutto Ok
Il problema sta nel fatto, che vorrei sfruttare le login e password dell'area protetta funzionante, per proteggere una pagina.asp di un'altra area che mi permette di inserire e cancellare annunci, il file si chiama index.asp e posto lo script :
<%@LANGUAGE = JScript%>
<%var Rs = Cn.Execute("SELECT * FROM anagrafe ORDER BY id DESC");%>
<html>
<head>
<title>Leggi i dati</title>
<style type="text/css">
td { font: Normal 12px Verdana; }
a { color: #0000FF; }
a:hover { color: #FF0000; }
</style>
</head>
<body>
<table align="center" width="400" cellpadding="1" cellspacing="0" border="1">
<tr><td colspan="4">Leggi i dati </td></tr>
<%if (Rs.EOF) Response.Write("<td colspan=\"4\">Nessun dato</td>");
else while (!Rs.EOF){%>
<tr>
<td width="50" align="center">">Mod.</td>
<td width="50" align="center">">Canc.</td>
<td width="150"><%=Server.HTMLEncode(Rs("nome"))%></td>
<td width="150"><%=Server.HTMLEncode(Rs("cognome"))%></td>
</tr>
<%
Rs.Movenext();
}
%>
<tr>
<td colspan="3">Inserisci</td>
<td align="right">by lukeonweb.net</td>
</tr>
</table>
</body>
</html>
<%Cn.Close()%>
La domanda è basta che includa il file nell'index.asp?
Oppure vado incontro a dei problemi con gli annunci in <%@LANGUAGE = JScript%> e l'area protetta tutta in asp.?
Se qualcuno ha da suggerirmi altre strade grazie.

Rispondi quotando
