Click to See Complete Forum and Search --> : multiple web redirect script


kendals
10-21-2004, 08:10 PM
hi,

i am trying to make a script that will allow the user to answer questions using a html form, the form will have 4 questions. Each question has a different option such as A,B,C,D. Depending on which answers they pick they will get taken to different websites. For example if they pick all the option A for each of the 4 questions they will get taken to say google. I know this has to do with boolean and the questions being assigned numeric values but im not sure how to code it.

Thanks
Kendals

javaNoobie
10-21-2004, 09:19 PM
Assuming you are using radiobuttons. Loop through all the radio button groups, if a radiobutton is checked get the numeric value and add it to the total. After retrieving all the numeric values, do a switch or if.. else if..else statements to do the proper redirection.

kendals
10-21-2004, 09:22 PM
ok thanks, i got it.

Kendals