how to make multipage forms remember checked values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
competent
Forum Newbie
Posts: 8
Joined: Mon May 17, 2004 5:37 pm

how to make multipage forms remember checked values

Post 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 :(
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post 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 =]
User avatar
Gonik
Forum Newbie
Posts: 19
Joined: Fri Aug 30, 2002 7:39 am
Location: Somewhere Around Nothing

Post by Gonik »

or using hidden input tags. i use that
Post Reply