Zhat zhat zhat...

Template engine test page

This example demonstrates how to generate a multiple choice test form using a template.
The test is divided into 3 categories, with 5 questions each. Each question can be answered in 10 ways.

Off course, this is a simple example, so the values are fixed, but if the form was to be generated using data from a database, the number of questions in each category, and the number of options pr. question, would probably be different for every category and every question. The template operations would however, be the same.

View HTML template source      View script source

Test category number 1
Question #1
Question #2
Question #3
Question #4
Question #5
Test category number 2
Question #6
Question #7
Question #8
Question #9
Question #10
Test category number 3
Question #11
Question #12
Question #13
Question #14
Question #15
© Copyrighted by Niels Andersen