I am trying to create a login page for the first time, I have a login page, validate login page and if the password is correct it takes me to the first page.
I have customized this code someone else created,but what I have a problem with now is I need to log who submitted that data and that is why I am trying to read UserName cookie so I can later match that data.
This is the error I get which is telling me that it is reading the cookie since this is the UserName I am logging in with
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'boxhill'.
but I can't see what is wrong, and there is not much out there for this kind of error.
So I can login successfully but now i need to read and dispaly that cookie and then insert the value of the cookie but,but don't worry about that now, just trying to give you the full picture.
So this is the code for reading the cookie
Dim myCon
Dim rs
set myCon = Server.CreateObject("ADODB.connection")
set rs = Server.CreateObject("ADODB.recordset")
call myCon.Open(Application("MM_Shipment_ConnectionSTRI NG"))
call rs.Open("SELECT UserName FROM Logins " & _
" WHERE UserName=" & Request.Cookies("Login"), myCon)
Response.Write(rs("UserName"))
call rs.Close
Could somebody help me with this please.
thanks a lot