Re: ASP Invalid Login Script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



http://www.aspprotect.com

"StlyDan" <pretzellogic@xxxxxxxxxxx> wrote in message
news:pLWdnYaRJZivsbffRVn-rw@xxxxxxxxxxxxxx
>I am using the following script allowing users to login, but I am having
> trouble writing the portion that indicates an invalid username or
> password.
>
> Any thoughts?
>
>
> <%
> set conn=server.createobject("ADODB.connection")
> conn.open "DRIVER=MySQL ODBC 3.51
> Driver;UID=;STMT=;OPTION=;PORT=;PASSWORD=;SERVER=;DATABASE=;DESC=;"
> strSqlString = "select count(*) as counter, ID from tblxxxxxx where
> username='"& request.form("Username") & "' and password=password('"&
> request.form("Password")&"') group by ID"
> set rs=conn.execute (strSQLString)
> if cint(rs("counter")) <> 1 then
> session("sblogin")=false
> session("sbuid")=""
> response.redirect("../system/login.asp")
> else
> session("sblogin")=true
> session("sbuid")=rs("id")
> %>
>
>


.



Relevant Pages

  • ASP Invalid Login Script
    ... trouble writing the portion that indicates an invalid username or password. ... set rs=conn.execute (strSQLString) ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Re: Message not displayed
    ... lblMessage.Text = "Invalid username or password"; ... >> I have a Login screen which has a Label on it, ... >> Colin B ...
    (microsoft.public.dotnet.framework.aspnet)
  • Registering my FC 4 trouble
    ... login page. ... Error Class Info: Invalid username and password combination. ... the update icon keeps beeing blue, ...
    (Fedora)
  • Re: help needed with graffiti.net email query
    ... even when I try to login as a new user it won't accept any user name ... I have a graffiti.net email account. ... It said invalid username or something along those ... your login info it takes you back to graffiti. ...
    (microsoft.public.excel.programming)
  • Lost all audio when cleaning out computer
    ... Have lost all of AOL sounds, login and logoff sounds. ... install cd and get music so that portion works. ...
    (microsoft.public.windowsxp.accessibility)