Results 1 to 2 of 2

Thread: Form validation against SQL Database

  1. #1
    bouellet
    Guest

    Unhappy

    Any suggestions on how I can validate an ASP form field against a SQL data base. I simply want to validate the field value to ensure it is an existing item in my data base. I would like to do this as the field loses focus.

    Thanks!

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    I think you will have to create client side DHTML script with an open database object. This however is not very secure, allowing the dishonest into your database directly.
    Keep all your data access and validation in server side script (or in server bound ActiveX DLL components), by validating after the page is submitted, and sending back the page with a meaningfull message prompting for corrections.
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

Posting Permissions

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



Click Here to Expand Forum to Full Width