Forum Moderators: coopster
Thanks to those who've helped me before. I'm stuck on another form, it looks fine to me but it just produces a blank screen on submit and I can't see why.
Here's part of my form code which is replicated and attribute1 changed to attribute2 etc:
<tr>
<td><p>Ability to communicate effectively with people in a work environment</p></td>
<td><p>
<label>
<input name="attribute1" type="radio" value="yes" checked="checked" />
yes</label>
<br />
<label>
<input name="attribute1" type="radio" value="no" checked="checked" />
no</label>
<br />
</p></td>
<td> </td>
</tr>
Here's the php which goes to make an fpdf document:
$pdf->Multicell(0,5,'These are the employability skills that you already possess'.$i,0,1);
$pdf->Ln(5);
if $attribute1 == "yes" $pdf->Multicell(0,5,$_POST["Ability to communicate effectively with people in a work environment"],0,1);
$pdf->Ln(5);
if $attribute2 == "yes" $pdf->Multicell(0,5,$_POST["Communicate your own ideas to individuals"],0,1);
$pdf->Ln(5);
$pdf->Multicell(0,5,'Here is the list of the skills that you would like to improve'.$i,0,1);
$pdf->Ln(5);
if $attribute1 == "no" $pdf->Multicell(0,5,$_POST["Ability to communicate effectively with people in a work environment"],0,1);
$pdf->Ln(5);
if $attribute2 == "no" $pdf->Multicell(0,5,$_POST["Communicate your own ideas to individuals"],0,1);
$pdf->Ln(5);
Can anyone advise?
[edited by: MsCrow at 10:47 pm (utc) on Sep. 11, 2006]
[php]
echo "<pre>";
print_r($_POST);
echo "</pre>";
[/php]
try to use error_reporting(E_ALL) to see the errors
Check your (') versus (")
make sure the $_POST['variable'] don;t mess with your php code (some weird characters, html code, etc)