View Full Version : Submit button Dynamically Changes Listbox

03-16-2006, 05:42 PM
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.

03-16-2006, 07:27 PM
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!

03-17-2006, 02:27 PM
You need to put a condition in the listbox

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