Page 1 of 1

how to make multipage forms remember checked values

Posted: Fri May 21, 2004 3:09 pm
by competent
I have question. I want to make a kind of internet multiple choice test. I will dinamicly collest the data from database eg. questions, answers, number and witch of answers are correct, and I dont want users to scroll through eg. 50 questions, but make a pabing. I implement paging but problem is... that i don`t know how to make browser remember previously checked by user radioboxes and checkboxes, and if he(she:) go back one page his(her)answers are gone :(

Posted: Fri May 21, 2004 3:12 pm
by tim
header("Cache-control: private");
also - you can use sessions to remember values, just define them as you go with the values of the clicked radioboxes =]

Posted: Fri May 21, 2004 7:50 pm
by Gonik
or using hidden input tags. i use that