form input field

Results 1 to 5 of 5

Thread: form input field

  1. #1
    CDWD Guest

    Default form input field

    I have a form input field that users can enter a value in. If the value already exists in the database I want a response returned "That value taken, please enter a new value"

  2. #2
    <eop> Guest

    Default Check the FAQs


  3. #3
    Join Date
    Dec 1969

    Default Two Ways...

    There are two ways, if you want to do it client side, you can load all the "taken" values into an array using javascript, or, once the user has submitted the form, the first section of code on the page they are submitting to should go like this...<BR><BR>request("value") = 32<BR><BR>SQL = "Select * from table where thevalue=" & request("value")<BR> strconnect<BR>set objrec = objconn.execute(SQL)<BR><BR>if not objrec.eof then<BR> response.write("That value is already taken")<BR>else<BR> do your stuff here.<BR>end if<BR><BR>-- Whol

  4. #4
    Join Date
    Dec 1969

    Default RE: form input field

    Yes, check out the FAQs... I think some good looking ghost wrote an article just for you!

  5. #5
    <eop> Guest

    Default I think we know who Desert Ghost is now!


Posting Permissions

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