Note – I do not have access to a database and cannot use PHP, thus is why I’m asking for help. My hands are tied and I can only do through html/javascript/etc.
I’m creating a online quiz that has 10 questions (1 question per page), but only one question determines the outcome to 4 different final locations. Question 3 (page 3) is the determining question, but I need to “record” the radio button selection, so the last question (page 10) determines the URL for the submit button, which in hand redirects the user.
All the other questions are vanity questions, as question 3 is the big determining factor.
I was thinking that the answer on question 3 (page 3) creates a cookie with 1 of 4 values (based off of the radio button selection), then on the last question (page 10) the cookie is read and the value determines the url, which then writes in the URL redirect code for the submit button. This is just theory now, as I’m not sure if this is doable.
Any advice would be greatly appreciated.
Why don’t you pass the relevant answer as a GET ? You can easily read the query string in Javascript.