...

View Full Version : fill html form that writes to a fpdf pdf cell



tau9
10-02-2009, 10:33 PM
hi

Does anyone know how to write to a cell in fpdf?

<?php
require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$stringData = $_POST["hour"];
$pdf->Cell(60,10, what goes in here to write the hour);
$pdf->Output('test.pdf','D');

tried

$pdf->Cell(60,10,<?php echo $_POST['hour'];);

but doesn't seem to work.

Any ideas?

Phil Jackson
10-02-2009, 11:21 PM
does your server have the pdf extension installed? If you have not, take a look at this. it is not very flexable but might help

http://www.fpdf.org/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum