Specifications

LISTING 30.2 Continued
<input type = image src = ‘certificate.gif’ border = 0>
</center>”;
echo “<input type = hidden name = score value = ‘$score’>”;
echo “<input type = hidden name = name value = ‘$name’>”;
echo “</form>”;
echo “<p>Please click here to download your certificate as
a Portable Document Format (PDF) file. “;
echo “<form action = ‘pdf.php’ method = get>”;
echo “<center>
<input type = image src = ‘certificate.gif’ border = 0>
</center>”;
echo “<input type = hidden name = score value = ‘$score’>”;
echo “<input type = hidden name = name value = ‘$name’>”;
echo “</form>”;
echo “<p>Please click here to download your certificate as
a Portable Document Format (PDF) file generated with PDFLib. “;
echo “<form action = ‘pdflib.php’ method = get>”;
echo “<center>
<input type = image src = ‘certificate.gif’ border = 0>
</center>”;
echo “<input type = hidden name = score value = ‘$score’>”;
echo “<input type = hidden name = name value = ‘$name’>”;
echo “</form>”;
}
}
?>
This script will display a message if the user did not answer all questions or scored less than
our chosen pass mark.
If the user successfully answered the questions, he will be allowed to generate a certificate.
The output of a successful visit is shown in Figure 30.3.
From here, the user has three options. He can have an RTF certificate, or one of two PDF
certificates. We will look at the script responsible for each.
Generating Personalized Documents in Portable Document Format (PDF)
C
HAPTER 30
30
GENERATING
PERSONALIZED
DOCUMENTS IN
PDF
757
36 7842 CH30 3/6/01 3:40 PM Page 757