Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kristofor Giordano
2,471 PointsCreating a test in a web application
I'd like to add a test to my website that is a combination of checkboxes and multiple choice radio buttons. Once the test is complete the user will hit the submit button and an image will be retrieved (corresponding to the test-takers answers). Any advice on how to to do this?
3 Answers

Joel Bell
8,586 PointsThe easy way? Install Wordpress, get Gravity Forms with the quiz add on, Click and drag.

Kristofor Giordano
2,471 PointsThanks. Maybe... but is there another way to do it with php?

James Barnett
39,199 PointsYou can of course write most any web application with PHP, provided you know how.
Basically you would ...
- HTML for the forms
- radio buttons, check boxes and what not
- MySQL to store the questions & answers
- For the programming logic PHP
- Determine what questions to ask
- In which order
- Get the question data out of the database
- Put the answers into the database
- Calculate the score and present the image