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 Giordano2,471 Points
Creating 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?
Joel Bell8,586 Points
The easy way? Install Wordpress, get Gravity Forms with the quiz add on, Click and drag.
James Barnett39,199 Points
You 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