Jump to content

ucichem

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ucichem's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The globals are turned off on my system.  Anyone know a quick and easy way to turn them on?
  2. This is one of those questions where asking in a clear way is more difficult than the actual coding I guess, hahaha.  Thanks for bearing with me everyone. Each question has a total of 5 points available.  There are also 5 hints to be available for each question.  Each hint viewing would deduct one point from the total.  For example, if the user clicks one hint, they lost one point, and have a total of 4 left.  If they use their one hint and answer the question correctly, they have earned 4 points.  If they view 5 hints, they lose all their points.  I have already figured out how to score incorrect or correct answers.  I am just having trouble with figuring out how to display scores based on the pages that a user accesses.  I have forms configured where the user is asked whether they want to view a particular hint.  I am pretty sure that there is a way to tabulate how many submissions of 'yes' a user sends, and therefore be able to calculate the score deductions based on views. I do not need to store the scores at all.  The scores just need to be calculated and displayed for the user. Another thought... Could I create one main page with 5 questions, all using html/php forms?  Each question would ask whether the user wanted to view a particular hint.  With the right code, couldn't I total how many yes answers I got, and deduct from 5 based on that? Again, thanks for all the help. 
  3. Is there any way to block access to the 'Back' button (the previous page button)? I am creating an online quiz and want to prevent users from answering a question, getting it wrong, then hitting the back button and trying again.  The users are picking an answer from a series of radio buttons, then hitting submit and are re-directed using php conditionals. Thanks.
  4. I think that the words I used to describe my issue is misleading.  Let me try again. I want the user to be able to see his/her deduction of points based on where they click.  This information does not need to be stored in a database or ever accessed again.  The points are purely for the user's knowledge of how they are doing on a particular question, based on how many hints they click.  For example, the user starts with 5 points.  If they click on a hint, that's a one point deduction, so now the site tells them they have 4 points to work with.  If they click on another hint, they lose another point, so it will be displayed that they have 3 points. Do I need MySql to do that?  I am a PHP novice and do not have any experience with MySql, nor do I have it set up and running on this system.  I would only take the time to install it if it was absolutely necessary. Thanks for all the help already.
  5. I am just creating a demo version of the site.  The scores are used mainly for user feedback, not for grading, so it is not necessary for me to compile the individual scores.  As far as the users accessing the hints, I have not decided on a method yet.  I could use forms or just simple links, depending on what will work best with tracking using PHP.
  6. Hello all.  I am creating an interactive online tutoring service for the University of Connecticut. I am trying to find a way to keep track of points using PHP.  Each time a user accesses a 'hint', one point needs to be deducted from their score.  Users might access just one hint, or several.  I want to be able to notify the user of their score changes based on how many hints they access.  Can this be accomplished with PHP? I am currently using a Mac OS X, version 10.2.8.  I have an Apache webserver with PHP enabled, but I do not have MySql.  I also don't have globals enabled. Thanks, e-Tutor webmaster
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.