/    Sign up×
Community /Pin to ProfileBookmark

multiple web redirect script

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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@javaNoobieOct 22.2004 — 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 [i]switch[/i] or [i]if.. else if..else[/i] statements to do the proper redirection.
Copy linkTweet thisAlerts:
@kendalsauthorOct 22.2004 — ok thanks, i got it.

Kendals
×

Success!

Help @kendals spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...