The code is given.. i want to generate a pdf with content,what i entered in the text field
<form method= 'post' action =''>
Name<input type="text" name="name">
<input type="submit" value="submit" name="submit">
</form>
<?php
require("fpdf.php");
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$a=$_POST["add"];
$pdf->Cell(40,10,$a);
$pdf->Output();
?>
but the result is...
FPDF error: Some data has already been output, can't send PDF file Somebody plz help