"Geoff Cox" <ge*******@notquitecorrectfreeuk.com> wrote in message
news:cj********************************@4ax.com...
Hello,
I have a series of pages each of which creates an array of values.
How do I keep all the array values until the last page?
Cheers
you could
1) use a session
2) store in a cookie
3) pass all the variables from one page to the next via a get or post, each
page accumulating the values for the next page.
4) Create a hidden iframe which has some javascript which holds all these
values.
5) Create a non hidden iframe (like a menu or something else) that does not
get reloaded and store the values there.
6) forget it and as per your other post keep all the action on the same
page.
I actually prefer option 4, followed by 6.
Keeping the action on the same page just means that you need to (bearing in
mind I do not have 100% clear idea of what you are doing)
1) create all the arrays.
2) display the series of questions on the page (I think you wanted one as a
time)
3) store the answers in your arrays
4) post these value to your server.
I think in a seperate post you asked how to display the questions one after
the other ?
you beed a div which is used to display the question. When th euser has
answered the question (click a button i presume) you use innerHTML to
display the next question. or you could display "all" the questions in a
table and then just hide all the unwanted questions.
Sorry for the fragmented answer if there is anything you want some more
details on please just ask !!
Zoe