Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

Always able to verify a user ID and password, to help you look at this code

"!--#include File=. . /inc/conn.asp-->
<%
UID = Request.Form ( "Channels")
PassW = cstr (Request.Form ( "PassW"))
Response.Write (UID) 'the test, the correct
Response.Write (PassW) 'the test, the correct

Set RS = Server.CreateObject ( "ADODB.Recordset")
SqlStr = "select * from EB_Admin where AdminName= '" & Channels & "' and PassWord= '" PassW & & "'" 'field has been checked, and no problems
RS.Open SqlStr, Conn,1,1
If not RS.Eof Then
Session ( "Channels") = Channels
Session ( "Flag") = true
Response.Redirect ( "http://www.unescap.org/epoc/index.asp")
Else
%>
"Script language=" vbscript ""
MsgBox ( "user name or password wrong, it failed on landing! ")
"/Script>
<%
End IF
RS.Close
Set RS = nothing
Conn.Close
Set Conn = nothing
%>

=========================================
Users, and input the correct password dialog box to prompt the user name or password will be activated is wrong!
I really can not find where the problem, we help the Manga, I will soon collapse!

If not (rs.eof or rs.bof) then




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com