I want to do this:
When user edits some text and clicks submit - for html to $_post the info into a FPDF file.
I'm stuck here:
<?php
require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->AddPage();
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
$pdf-> Output();
?>
How can I add a $_POST attribute? If I do, it gives an error.
Or if someone knows a way to connect to the database and display info from tables... that would be nice.
Example I found:
$query = "SELECT imageField FROM yyy WHERE ...";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
$image = $row['imageField'];
$pdf->MemImage($image, 50, 30);
Obviously that is an image... how can it be done with text?