Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Object doesn't support this property or method
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Object doesn't support this property or method

 Post Reply Post Reply
Author
mkbutler View Drop Down
Newbie
Newbie


Joined: 13 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote mkbutler Quote  Post ReplyReply Direct Link To This Post Topic: Object doesn't support this property or method
    Posted: 19 April 2007 at 11:25pm
logon.asp is allowing user to type in uername and password
 
this goes to
 
checkstatus.asp which checks to see if username and password are correct. If password is password it redirects to changePassword.htm (I also tried changePassword.asp).
 
At changePassword.htm (.asp) the user types in old password, newPassword and newPassword2. This then goes to newPassword.asp which is trying to update the record if newPassword = newPassword2. I assumed I would be using Response.Form ("newPassword") to check for equality, but I get the error message "Object doesn't support this property or method Response.Form"
 
Here is the code:
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("chsTeachers.mdb")
Set rsUpdateEntry = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM TeacherInfo WHERE tID='" & strTeacher &"' AND tPassword='" & strPassword & "'"
 
rsUpdateEntry.CursorType = 2
rsUpdateEntry.LockType = 3
 
rsUpdateEntry.Open strSQL, adoCon
oldPassword = Response.Form ("oldPassword")
newPassword = Response.Form (newPassword)
newPassword2 = Response.Form (newPassword2)
strPassword = Session ("tPassword")
strTeacher = Session ("tID")
if rsUpdateEntry.EOF Then
 Response.Redirect ("logon.asp")
Else if newPassword = newPassword2 Then
  rsUpdateEntry.Fields("tPassword") = newPassword
  rsUpdateEntry.Update
  Response.Redirect ("menu.htm")
Else
  Response.Redirect ("changePassword.htm")
End if
End if
 
What am I not getting? I have tried putting the Response.Forms in the if statements as well, but I can't get it to like them their either.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.