Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit button Dynamically Changes Listbox

    I have a form that writes to a access_db database. I have three submit buttons, each one must dynamically change the list box on the redirect page.

    here is the breakdown:

    1. user fills out form
    2. chooses payment choice (visa, MC, amex)
    3. clicks the appropriate CC logo
    4. form submits to database
    5. user is redirected to CC processing form
    6. there is a listbox "Credit Card Type" on CC processing form
    7. listbox "Credit Card Type" auto fills with appropriate CC (logo user clicked) from the previous page

    Is this possible?

    I'm not sure whether to use hidden fields or not or even how. Any help would be awesome.

    THANKS in advance.

  • #2
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do not have time to write out a solution but i must say this.

    When ever a user says: Is this possible?
    The answer is always: Yes!
    Note: I do not test code. I just write it off the top of my head. There might be bugs in it! But if any thing I gave you the overall theory of what you need to accomplish. Also there are plenty of other ways to accomplish this same thing. I just gave one example of it. Other ways might be faster and more efficient.

  • #3
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need to put a condition in the listbox

    Code:
    <option value="visa" <%=If Request.Form("cctype") == "visa" Then Response.Write "selected"%>>Visa</option>


  •  

    Posting Permissions

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