# Using variables in questionairre to determine next page

**URL:** <https://forum.kirupa.com/t/using-variables-in-questionairre-to-determine-next-page/268941>\
**Category:** web dev\
**Created:** [August 20, 2008, 5:55pm UTC](https://forum.kirupa.com/t/using-variables-in-questionairre-to-determine-next-page/268941 "2008-08-20T17:55:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes\_Ide](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wes_ide/32/1119_2.png) [@Wes\_Ide](https://forum.kirupa.com/u/Wes_Ide)\
**Post date:** [August 20, 2008, 5:55pm UTC](https://forum.kirupa.com/t/using-variables-in-questionairre-to-determine-next-page/268941/1 "2008-08-20T17:55:05Z")

</div>

I’m hoping this is a JavaScript solution (though I still am unsure of how to proceed), but here’s what’s going on:

I’m trying to create a simple 2 question questionnaire that sends the visitor to a page dependent on their answers. Here’s the jist of it.

Question 1: What type of company are you?  
Type 1  
Type 2  
Type 3  
Type 4

Question 2: What is your company’s annual revenue?  
Revenue 1  
Revenue 2  
Revenue 3  
Revenue 4

What I’m looking for is to create a simple form using radial buttons, where whichever option the visitor chose determines what site next displays when they click a Next button. I plan to have Question 1 on its own page, since certain Types of companies (let’s say a non-profit company) would exclude certain annual Revenue options (say $10 billion or more). So if a visitor chose Non-Profit for Question 1, then clicked Next, the next page would display with only the viable options for Question 2. So basically I’d be creating multiple versions of a page containing Question 2, and whichever option the visitor selected in Question 1 would determine which page was displayed next.

Similarly, whichever of the displayed options the visitor selects for Question 2 then determines the page they finally land on when they hit Next.

I know it may be possible to display both questions on the same page, with the radial chosen for Question 1 determining the displayed answers for Question 2, but I have no idea how to do this. Honestly, whichever is a faster result is preferred (deadlines and all).

If anyone can help me do this, I would be forever grateful. Thank you in advance! 🙂
