I am setting up an online testing system using php & mysql. For each student I want to store a question number and answer to an array and then loop through the array to enter this information into a data table. Since the questions are on different web pages, I'll need to make the array into a session variable. Can I do this? If so, can I use the question number as the index of the array variable?

Thanks for any ideas.

Ivan Gepner
gepner@monmouth.edu

    Yes and yes. $_SESSION is already an array, so you'll just be making it multidimensional.

      Write a Reply...