Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6

    Unanswered: copy data during validate

    This ASP rookie is creating a web page to let customers make limo reservations. I validate the user input prior to appending the data to the server. If it fails validation, I want to leave their input there so they don't have to input it again. This seems easy to do with textboxes:

    value = <% = request.form("Passname")%>

    but is there a similarly easy way to do this with drop down boxes? Since the way to set that value appears to be:

    selected="selected"

    on the appropriate option, the only way I see to retain the input is an If/Then for each option, which seems like a lot of effort. Am I missing something?

    TIA
    Paul

  2. #2
    Join Date
    Mar 2006
    Location
    south jersey, usa
    Posts
    53
    i setup a contact us page for ppl to send email messages to my department. If validation fails, i reported the error and created a link using javascript's history.back(). This keeps all form data intact.

    http://www.farmersofsalem.com/contact_us.htm

    leave user verification blank to test.
    "They say Moses split the Red Sea
    I split the blunt and rolled the fat one, I'm deadly"
    -- Tupac 'Blasphemy'

  3. #3
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6
    Thanks; I'll take a look and see if I can figure it out.
    Paul

Posting Permissions

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