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