ASP and Database Question

Results 1 to 2 of 2

Thread: ASP and Database Question

  1. #1
    Join Date
    Dec 1969

    Default ASP and Database Question

    Hello. I have an Access database that contains a table with several fields, 2 of which are u_name (for username) and password (no explanation needed!). I am using this format to validate users to my site, but here is the hang up:<BR>If the username/password combo is correct, everything works great. If the username/password combo is incorrect, then I get an exception. Here is what the code looks like:<BR><BR>If U_Name = rs(u_name) And Password = rs(password) Then<BR> response.Write "some text here"<BR>Else<BR> response.write "Invalid username/password combo"<BR>EndIf<BR><BR>In this code, U_Name and Password are the values passed from the form to the asp script. Any thoughts??? I am 2 days into coding ASP, so any input would be great.<BR><BR>Thanks in advance,<BR><BR>JOHN

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP and Database Question

    What do you mean that you, "Get an exception?" Could you clarify?<BR><BR>Let me recommend that you check out the following article on 4Guys:<BR><BR>Simple Authentication<BR><BR><BR>Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts