salve a tutti...gia oggi avevo posto un problema che grazie a voi sono riuscito a risolverlo...se č possibile ve ne pongo un altro...sto cercando di creare delle news aggiornabili...ma il file INDEX ASP non mi funziona...vi metto il codice...
<%
' CONTROLLA SE I DATI INSERITI NEI CAMPI DI LOGIN SONO ESATTI
' USERNAME AMMINISTRATORE
username = "peppe"
' PASSWORD AMMINISTRATORE
password = "peppe"
IF Lcase(Request.Form("username")) = Lcase(username) and
Lcase(Request.Form("password")) = Lcase(password) then
' I DATI SONO ESATTI E SI VIENE IDENTIFICATI COME AMMINISTRATORE
' E PORTATI NELLA PAGINA "GESTIONE_NEWS.ASP"
session("amministratore") = true
Response.Redirect "Gestione_News.asp"
End if
%>
<html>
<head>
<title>GESTIONE NEWS</title>
</head>
<body>
<p align="center"></p>
<p align="center"><font size="4" face="Verdana">Gestione
News!</font></p>
<form method="POST" action="index.asp">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="39%">
<tr>
<td width="50%"><font face="Verdana" size="2">Username:</font></td>
<td width="50%"><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td width="50%"><font face="Verdana" size="2">Password:</font></td>
<td width="50%"><input type="password" name="password"
size="20"></td>
</tr>
<tr>
<td width="100%" colspan="2" height="5">
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center"><input type="submit" value="Invia" name="B1"><input
type="reset" value="Reimposta" name="B2"></td>
</tr>
</table>
</center>
</div>
</form>
<p align="center"></p>
</body>
</html>
ma pčurtroppo non mi logga...spero potete anche qui aiutarmi...grazie

Rispondi quotando