I want help on my application where the user can create multiple sessions. You can acess the application here. Please follow the steps below to be able to use the application:
Open the application
Please enter in "3" in the number of sessions textbox and "1" in the number of questions textbox and then click on the "Prepare Questions" button.
A confirmation box should appear, click "OK".
This will direct you into a new page known as "QandATable2.php" and this is where the user gets to create questions and answers for each session. At the bottom it states the number of sessions and questions you have chosen from the last page. Now please follow the steps below to use this page:
1: There are 4 controls at the top of the application, "Questions", "Options and Answers", "Replies" and "Number of Marks". Please do this below:
When you have done all this then click on the "Add Question" button.
You will now see that the question you have created is added into a new table row.
Now click on the "Submit Details" button below.
A confirmation box would appear, click "OK".
The session is created and the page is navigated to the "session_marks2.php" page (It displays an error page because I have not created this page yet".
Now what the problem is that we have stated that we wanted "3" sessions to be created, we have only created one session.
What I want to happen in this example is that after the user has created the first session, when the user clicks "Ok" in the confirmation box, then what I want is that I want the first session details to be stored in a temporary database (I do not want it to be stored in the proper database because lets say user has created a session but doesn't complete the other sessions, then it will mess the full database up with incomplete data) and then it should navigate the user to the same page (QandATable2.php) so the user can create the questions and answers again for the second session (which is 1 question as already mentioned) and then after second session created, save second session details in the temp database and then create third session. After third session completed then save it into temp database.
The reason I want a temp database is because lets say the user wants the same question from session 1 into session 2, then I want something where the user clicks on a button and they are able to select a previous question so when this happens the details of that question is stored in the top control and then the user can click on the "Add Question" button to add the question in a new row.
I know I am asking a lot but this is a huge thing in the application and what would be very helpful is if somebody can compile a simple demo showing how this can be achieved. I will be very greatful if this can be achieved. I am using php and Jquery coding.
Thank you and comment to me if there are any issues. Thank you :)
It seems there is a difference between your use of the word session
and the technical implementation of a session
on the server.
If you want 3 or 4 different 'sessions' for your user, you can easily do that by storing 3 or 4 different variables (arrays for example) in the $_SESSION
variable.