Visualizzazione dei risultati da 1 a 8 su 8

Discussione: login senza effetto

  1. #1

    login senza effetto

    qualcuno mi sa spiegare perchè la mia pagina di login non mi funziona??
    non da errori, non da nulla
    Il problema è proprio che dalla form di login, inserisco user e pass, premo il bottone e non fa nulla, non si collega a nulla, sta li ferma come una statua (e le chiamano pagine dinamiche).
    Ho fatto la pagina con dreamweaver.
    AIUTOOOOOOOOOOOOO

  2. #2

    Re: login senza effetto

    Originariamente inviato da nikselva
    qualcuno mi sa spiegare perchè la mia pagina di login non mi funziona??
    non da errori, non da nulla
    Il problema è proprio che dalla form di login, inserisco user e pass, premo il bottone e non fa nulla, non si collega a nulla, sta li ferma come una statua (e le chiamano pagine dinamiche).
    Ho fatto la pagina con dreamweaver.
    AIUTOOOOOOOOOOOOO
    Secondo me ci sono due errori di fondo,
    il primo è quello di aver fatto scrivere il codice a DW VVoVe:
    il secondo è quello di non farci vedere nemmeno una riga di codice .
    Pertanto, come direbbe qualcuno di questo forum: " Adesso prendo la mia sfera di cristallo e vedo dove stà l'errore ..."

  3. #3
    hai perfettamente ragione Michele daltra parte sono assolutamente inetto in programmazione.
    comunque il codice è questo:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

    <%
    ' *** Validate request to log in to this site.
    MM_LoginAction = Request.ServerVariables("URL")
    If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
    MM_valUsername=CStr(Request.Form("nome"))
    If MM_valUsername <> "" Then
    MM_fldUserAuthorization=""
    MM_redirectLoginSuccess="gestione.asp"
    MM_redirectLoginFailed="errore.asp"
    MM_flag="ADODB.Recordset"
    set MM_rsUser = Server.CreateObject(MM_flag)
    MM_rsUser.ActiveConnection = MM_selvaDB_STRING
    MM_rsUser.Source = "SELECT nome, password"
    If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
    MM_rsUser.Source = MM_rsUser.Source & " FROM utenti WHERE nome='" & Replace(MM_valUsername,"'","''") &"' AND password='" & Replace(Request.Form("password"),"'","''") & "'"
    MM_rsUser.CursorType = 0
    MM_rsUser.CursorLocation = 2
    MM_rsUser.LockType = 3
    MM_rsUser.Open
    If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
    Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization ).Value)
    Else
    Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And false Then
    MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginFailed)
    End If
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Gestione dati Selva</title>
    <link href="style/selva.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="100" align="center"></td>
    </tr>
    <tr>
    <td align="center">
    <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="50" align="center" class="titolo">login amministratore </td>
    </tr>
    <tr>
    <td height="100" class="testo2" style="border:1px solid #E1E1E1;">
    <form action="<%=MM_LoginAction%>" method="POST" name="form1" id="form1">
    Nome</br>
    <input type="text" name="nome" /></br>
    Password</br>
    <input type="password" name="password" />
    </br>
    <input name="entra" type="button" value="Entra" />
    </form> </td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>

    spero tu possa essermi d'aiuto
    GRAZIEEEEEEEEEEE

  4. #4
    Prova a cambiare questa parte:
    codice:
    <form action="<%=MM_LoginAction%>" method="POST" name="form1" id="form1">
    Nome</br>
    <input type="text" name="nome" /></br>
    Password</br>
    <input type="password" name="password" />
    </br>
    <input name="entra" type="button" value="Entra" />
    </form>
    Con questa:
    codice:
    <form method="POST" action="<%=MM_LoginAction%>">
    	
    
    Username
    
    	<input type="text" name="nome" size="20">
    
    	
    
    	Password
    
    	<input type="text" name="Password" size="20"></p>
    	
    
    <input type="submit" value="Invia" name="B1"><input type="reset" value="Reimposta" name="B2"></p>
    </form>

  5. #5
    sei un mitooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooo!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

  6. #6
    Originariamente inviato da nikselva
    sei un mitooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooo!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
    In effetti di soprannome mi chiamano micio o mito

  7. #7
    senza di voi sarei un uomo morto, grazie davvero, sopratutto a TE!!!!!!!!

  8. #8

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 © 2026 vBulletin Solutions, Inc. All rights reserved.