I have a CakePHP website that acts as a questionnaire. It moves the user from one question to another as they click “Next”. Now, for each person, I want the system to randomly select the questions they will receive.
Each question is built as a view that redirects to another view. Does anyone have a good idea on how to build it so that the when the user clicks “Next” they are redirected to a random view?
Thanks a lot everyone.
What I ended up doing was creating a “paths” table in the database with each record representing a possible path through the questionnaire. Then I had the controller grab a random record, divide it into an array in a Session variable, then use those array values in the “redirect” part at the end of every function. Thanks everyone.