Forum Moderators: coopster
I am building a form for students to assess their skills so it goes as such
<tr>
<td width="60%"><p><strong>Skill</strong></p></td>
<td> <p><strong>I have already developed this skill</strong></p> </td>
<td><p><strong>I need to improve this skills</strong></p> </td>
</tr>
<tr>
<td width="60%"> <p>Ability to communicate effectively with people in a work environment</p> </td>
<td width="20%"><input name="attribute" type="checkbox" class="form" value="Ability to communicate effectively with people in a work environment" /></td>
<td width="20%"><input name="attribute" type="checkbox" class="form" value="Ability to communicate effectively with people in a work environment" /></td>
</tr>
I am using fpdf to save documents so students have a record they can print. The above form outputs to my fpdf driven file. I want this file to have a heading such as 'Skills I have' and underneath to display all the checked box titles of the skills they have. I'm not sure what php code to use in my fpdf file, I'm also not sure I've titled my checkboxes well for this.
The fpdf file would be something like...though it doesn't work
$pdf->Multicell(0,5,'These are the employability skills that you already possess'.$i,0,1);
$pdf->Ln(5);
$pdf->Multicell(0,5, foreach ($attribute as $f) {echo $f."<br />");
$pdf->Ln(5);
I would greatly appreciate any feedback on how to do this.
Ellie