Specifications

F
IGURE 30.2
index.html asks the user to answer quiz questions.
Grading the Answers
When the user submits his answers to the questions in index.html, we need to grade him and
calculate a score. This is done by the script called
score.php. The code for this script is shown
in Listing 30.2.
L
ISTING 30.2
score.phpScript to Mark Exams
<?
// check that all the data was received
if($q1==’’||$q2==’’||$q3==’’||$name==’’)
{
echo “<h1><p align = center><img src = ‘rosette.gif’ alt = ‘’>
Generating Personalized Documents in Portable Document Format (PDF)
C
HAPTER 30
30
GENERATING
PERSONALIZED
DOCUMENTS IN
PDF
755
36 7842 CH30 3/6/01 3:40 PM Page 755