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 Buttons Direct to certain URLs - Enable/Disable features, too

Status
Not open for further replies.

boxes

Programmer
Apr 15, 2007
1
US
My form needs to (1) direct to specified URLs based on a combination of form selections and (2) enable/disable form features based on selections within the form

FORM

Radio 1
- A
- B
- C

Select Box 1
- 1
- 2
- 3

Combo selected and target URL

A1 - A2 - A3 - B1 - B2 - B3 - C1 - C2 - C3 -
Text boxes ("enter data")
box1
box2
box3
box4
box5

Radio 2
- X
- Y
- Z

If combination A1, B1, or C1 is selected, then all the text boxes and Radio 2 are Enabled, but if A2, B2, C2, A3, B3, or C3 is selected, then the text boxes and Radio 2 are Enabled.

/FORM

My form is actually a little more complex than this, but this gives the basic idea.

Any ideas most appreciated - Thanks :)
 
While you can do this client-side with JavaScript, I think you'd be better off doing it server-side, so it also works for those with JS disabled.

You could have one form processor with redirect to a certain page depending upon the selections.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top