php - mPDF $_POST from another page not working -
i generate beautiful looking html based pdf reason, sending html form mpdf generator works outside of $html = ''...
i send data html form (form.html) mpdf php page receives post variables. when use simple php tag $_post['preparedby'] in $html='' doesnt work.
here's snippet:
$html= ' <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="12"><img src="logo/xxtrasmsw.png"></td> </tr> <tr> <td colspan="12">eval form</td> </tr> <tr > <td width="11%">prepared by</td> <td colspan="7" class="bb">'.$preby.'</td> <td width="11%">date prepared</td> <td colspan="3" class="bb">'.$_post['dateprepared'].'</td> </tr> <tr> </table>';
and mpdf settings below table html looks like:
$pdffilename = "evaluation.pdf"; //declare pdf file $mpdf=new mpdf('c','letter'); $mpdf->allow_charset_conversion=true; $mpdf->charset_in='iso-8859-2'; $mpdf->setdisplaymode('fullpage'); $mpdf->list_indent_first_level = 0; $mpdf->writehtml($html); $emailattachment = $mpdf->output('evaluation.pdf', 's');
this works great phpmailer wont include settings. need clarity on how post variables show in $html variable mpdf using. me on terrible hurdle.
Comments
Post a Comment