Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Button Insert Record

Status
Not open for further replies.

RamDje

Programmer
Apr 3, 2003
23
US
Hey,

Maybe you all can provide some assistance with something I am working on.

How it should work:
Form on home page collects minimal information and inserts this info to a database. Form has two radio buttons, one for Home Purchase, and one for Refinance Mortgage. Based on the users selection of the radio button, it should insert the record and redirect it to another page with either the Home Purchase form or the Refinance Mortgage form. The option chosen should also be inserted into the DB (i.e. - Home Purchase to related DB table). This should happen when the user presses the submit button on the home page form. DWMX offers only the ability to redirect to one page upon successful insertion of the record. I imagine some javascript or ASP code could do the trick.

What I was able to do:
> Insert Record and Re-Direct to one page.
> Redirect form to selected radio button option (no insert record).

Need to do:
> Combination of above - insert record and redirect to different form based on radio button option selected.

Any assitance or ideas would be greatly appreciated.

Thanks in advance.

-RRD

RRD
 
use a select case

Code:
<%
select case request.form("radio_button")
case "one_value"
   ' do processing and redirect for this value here
case "other_value" 
   ' do processing and redirect for other value here
case else
   ' do processing for no value here
end select
%>

Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top