ciao a tutti sto creando la gestione delle news sul mio sito e non riesco ad entrare nella pagina admin.
Ecco l'errore:
Microsoft VBScript compilation error '800a03ea'

Syntax error

/admin/index.asp, line 8

IF Lcase(Request.Form("username")) = Lcase(username) and
--------------------------------------------------------^

ecco il codice :
codice:
<%
' CONTROLLA SE I DATI INSERITI NEI CAMPI DI LOGIN SONO ESATTI
' USERNAME AMMINISTRATORE
username = "admin"
' PASSWORD AMMINISTRATORE
password = "admin"

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>
dove sbaglio?