Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: ASP and online quiz


Message #1 by "Leon Scott" <lscott@m...> on Mon, 13 May 2002 11:03:06
Have you had any progress with this project Bill?
> I have been developing web sites and cd-rom presentations for years but 
am 
> very new to ASP. Here's what I need to do and would appreciate if 
someone 
> could point me in the right direction. 
> 
> 1) Collect user registration information and maintain it in a database 
for 
> future log-in. 
> 2) Create a 5 question quiz and record the score of the user. If the 
quiz 
> is completed correctly the user will proceed, if they answer incorrectly 
> they will be asked to make corrections to the quiz. 
> 3) The quiz will change monthly and when a user returns I need to be 
able 
> to track their previous scores and also add their total points together 
> for a combined total.
> 
> Is this possible in ASP or will I need to incorporate javascript and 
> cookies? Has anyone done anything similar?
> 
> Thank you for your expertise it is much appreciated,
> Bill
Message #2 by "Drew, Ron" <RDrew@B...> on Mon, 13 May 2002 08:17:23 -0400
Write an ASP with a form in it.  In the form with your quiz and add a
hidden field set to 0.  When the submit is pressed, use Javascript to
test for valid entries and if valid set the hidden field to 1. Now for
the ASP part.  Test for the hidden field to be 1 with a request.form.
If one, add your record else the form will show.  The quiz changes will
either have to be in the ASP itself each month or build a set of quizes
in a database and display the questions in the form. As to tracking
previous scores, either a cookie or make the person put their name on
the form itself and add a user table to the database.  Cookies will
work, but a user may have them disabled or have deleted all their
cookies during their 3000 mile oil change.


-----Original Message-----
From: Leon Scott [mailto:lscott@m...]
Sent: Monday, May 13, 2002 7:03 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: ASP and online quiz


Have you had any progress with this project Bill?
> I have been developing web sites and cd-rom presentations for years
> but
am
> very new to ASP. Here's what I need to do and would appreciate if
someone
> could point me in the right direction.
>
> 1) Collect user registration information and maintain it in a database
for
> future log-in.
> 2) Create a 5 question quiz and record the score of the user. If the
quiz
> is completed correctly the user will proceed, if they answer
> incorrectly
> they will be asked to make corrections to the quiz.
> 3) The quiz will change monthly and when a user returns I need to be
able
> to track their previous scores and also add their total points
> together
> for a combined total.
>
> Is this possible in ASP or will I need to incorporate javascript and
> cookies? Has anyone done anything similar?
>
> Thank you for your expertise it is much appreciated,
> Bill

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20

  Return to Index