Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 11th, 2003, 09:42 PM
bran_spankinew bran_spankinew is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 bran_spankinew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Q & A web site

I would like to build a question and answer web site, maybe about 150 questions total. Each question has it's own page with 4 answers to choose from. Questions are answered by clicking inside the radio button next to each answer. While all this is going on, I want to have the answers recorded somewhere and at the completion of the questions, a total percentage is given of the correct answers. All the incorrect questions and answers can then be recalled with the correct answers. No printing allowed, no copy and paste, no scroll bar, no typical browser look. Can anyone give me a hint as to how to accomplish the scoring and recall aspect of this project?

Reply With Quote
  #2  
Old September 11th, 2003, 11:17 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 4
RE: Q & A web site

I recommend using two arrays stored as session variables: one to hold the info for questions not yet asked and the other to store info for questions already submitted. That way you only have to initialize everything once. Just have the page submit to itself, store what was submitted, pop the next question from the unasked-array, and display. When the unasked-array is empty, figure out the score and display it.

Reply With Quote
  #3  
Old September 12th, 2003, 02:49 PM
bran_spankinew bran_spankinew is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 bran_spankinew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Q & A web site

Maybe there is a forum that I should get involved in first, before I set finger in this one. Although I am very appreciative of any help- and believe I have found a site full of knowledgeable people, I have a hard time understanding terms used and slang in this arena. All comments welcome.

Reply With Quote
  #4  
Old September 12th, 2003, 03:28 PM
Hatcher Hatcher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Yarm, Cleveland, England
Posts: 395 Hatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to Hatcher Send a message via Yahoo to Hatcher
RE: Q & A web site

Well, for this site do you have access to mysql? if so then store the q's/a's in a table like below:

id
question
answer1
answer2
answer3
answer4

Then, to check use an array to store the users replys, then check it against the database afetr selecting the information.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Q & A web site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek