944,179 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 12003
  • PHP RSS
Mar 19th, 2007
0

PHP Logic for Online Test

Expand Post »
Hello experts,

I'm new to PHP/Javascript. I am working on an Online examination system for prospective candidates. This is so as to learn object-oriented programming for my improvement.

Story So far: I have the mechanism in PHP/Javascript/Mysql to create an online test. This lets the user select the kind of test and the number of questions da da da... User logins with a login/password and is ready to take the test.

Now: I'm not trying to be really imaginative and make this test highly user-friendly. The questions (with ID) for each test are stored in a view created at run-time. These questions will be displayed from, say 1 to 20, through Back and Next buttons and will be multiple choice (one answer only).

What I have come up with: I could make the program go to the database everytime the user clicks on the Next button and randomly select a question from the view that has not already been answered. But that would not let me get back the same question when the user clicks on the Back button.

Help: I know that implementing what I want would be more complex (and involves more logic) than I can think of right now. Could someone give me a direction to go for me so I can figure this out?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
colorockies1975 is offline Offline
2 posts
since Mar 2007
Mar 22nd, 2007
0

Re: PHP Logic for Online Test

You can save the randomly selected id to the session. That way you can keep track of the questions that have been selected, select only questions that have not yet been selected and navigate through them.
Reputation Points: 13
Solved Threads: 2
Junior Poster
php_daemon is offline Offline
138 posts
since Aug 2006
Mar 29th, 2007
0

Re: PHP Logic for Online Test

Sounds good, brother. Thanks a lot.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
colorockies1975 is offline Offline
2 posts
since Mar 2007
Aug 31st, 2010
-1

Not happy

I m not happy with this.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumit aneja is offline Offline
1 posts
since Aug 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Freelance Job Board
Next Thread in PHP Forum Timeline: Multiple CheckBox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC