For a class final, I'm trying to develop a survey that returns results based on user answers. The survey is four yes/no questions, and based on how users answer those questions, they receive a result I wrote specifically for that yes/no combination.
Yes, Yes, Yes, Yes - returns result A
Yes, Yes, Yes, No - returns result B
et cetera for every possible combination 1-16
How would I go about building something like this? It would be great if the script also displayed the survey results on the result page, but I could use HTML to do that.
THANK YOU IN ADVANCE FOR YOUR HELP!!
What about opening the answers in the same window?
Thanks again for all your help with me on this forum. I'm still new at this stuff and it's taking me some time to get used to it :)
How would I modify this code so that the quiz returns results in the same window instead of opening a new window every time?
WAIT A SECOND. I am kind of silly. The answer is
document.location.href = qans+'.html'
such a noob. Okay, nevermind. Thanks for this awesome forum!