Friday, 15 March 2013

php - Convert POST HTML data from textarea to PDF -



php - Convert POST HTML data from textarea to PDF -

i have text area in form, when insert html code table formatting, converts in pdf on localhost formattings, when same on hosting shared , on vps both not show formatting, have attached both images on local host , live hosting,

post html info stored in variable, contains 120 check boxes text, 30 text fields data

when utilize same html pre-stored in variable works, when utilize $_post variable gives bad results in image 2

please allow me know how can create work on both sides, as

picture 1 (good result on localhost)

picture 2 (result html $_post variable , on hosting)

when checkbox value via php $_post homecoming on if checked , off not :

<? $state = ""; $myvar = $_post['mycheck']; if($myvar=="on") $state = "checked"; print "<input type='checkbox' name='mych' $state>"; ?>

php pdf pdf-generation tcpdf html2pdf

No comments:

Post a Comment