Hi people,
I have a peculiar problem. I need a way to pass a variable between web pages. I don't have CGI, PHP, or any other way to do server side code.
This is how it should work:
Ok, I won't hide it anymore
I'm trying to do something like an online exam.
As I see it, I have two options:
What's the expert's view on this?
I have a peculiar problem. I need a way to pass a variable between web pages. I don't have CGI, PHP, or any other way to do server side code.
This is how it should work:
- User visits a page, does something. A variable (an integer) is set based on this.
User clicks 'next', and does something. The variable is incremented, decreased or left alone depending on the data entered.
This goes on for a few more pages.
On the 'final' page, the user gets to know the score.
Ok, I won't hide it anymore
As I see it, I have two options:
- I might use javascript using cookies. I don't know much about cookies.
I could make an invisible frame and keep writing the variable into it using JS as the user moves along the test. I think I can do this but it doesn't seem elegant
What's the expert's view on this?
