GitXplorerGitXplorer
a

PHPquiz

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
ce72274eb3b932a3be5eadf0f5a25df3f2a70b8d

Added form validation that requires the user to answer every question

aarelenglish committed 12 years ago
Unverified
3b8cc70c929174d66bb9da01591d2524db54a291

updated readme with tips and contact info

aarelenglish committed 12 years ago
Unverified
1fae9a76d1c9a73f0af8b282eeb24a86a031ec8e

really simplified the code.

aarelenglish committed 12 years ago
Unverified
23242194cc13a62cbe44ca68013ca9a67f003769

changed score from a simple sum of the results to a score that is an average of the non zero answers so the user can get a number that actually means something.

aarelenglish committed 12 years ago
Unverified
826cfe69fc0caa33cce7270a070cc26bf3c3c3ae

fixed path in form action to point to whichever page the form is on. I'll add JS later to avoid needing a page reload. Also fixed a bug that was causing all scores to multiple by 3.

aarelenglish committed 12 years ago
Unverified
b769798cb67fa45a9c7f4ce147d982317419cfff

first commit

aarelenglish committed 12 years ago

README

The README file for this repository.

A simple PHP quiz.

If you want to implement this quiz into your Wordpress site or other PHP site, just follow the instructions below:

  1. Download Source Code
  2. Paste code from quiz.php into your php file where you want the quiz to show up
  3. Paste the css styles from styles.css into your main css file, or import the styles.css file
  4. edit the questions and use the quiz!
  5. Optionally, you can put the PHP in a separate file and change the form action to the location of your php file so that when a user clicks "submit quiz" they are taken to a results page.

I made this quiz in an afternoon, so don't expect it to be the best, or the leanest code. If you need something simple, feel free to use it, hack it, whatever you want.

Finally, if you want to make improvements, feel free to fork me.

If you have any questions, open an issue or tweet to @ArelEnglish