Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di marix76
    Registrato dal
    May 2007
    Messaggi
    125

    aiuto pagina login admin

    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?

  2. #2
    non puoi spezzare una riga di codice su due linee

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.