Send variable from form submit into fpdf

i have a form…

<form method=“post” action=“tambah_vendor.php”>
<input name=“id_produk” type=“text” size=“20” />
<input type=“submit” name=“input_produk” value=“Insert” />
</form>

i want to send to this fpdf page…
<?
$id_produk=$_POST[‘id_produk’];
require(‘fpdf.php’);
$pdf=new FPDF(‘P’,‘mm’,‘Legal’);
$pdf->SetMargins(40,40,30);
$pdf->AddPage();
$pdf->SetFont(‘Times New Roman’,‘B’,12);
$pdf->MultiCell(0,10,‘$id_produk’,0,‘J’);
$pdf->Output();
?>

it’s not errors but variable $id_produk doesn’t want to show, can anybody help me?

Hi,
Try pass $id_produk to function, without quotes.

$pdf->MultiCell(0,10, $id_produk, 0,'J');