Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple quiz written in PHP
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
quiz.php
readme.markdown
styles.css

readme.markdown

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

Something went wrong with that request. Please try again.