Web2PDF not reading Javascript or Php values -
i'm using web2pdf print few values pdf document. in html, these values show when i'm converting webpage pdf, these php/js values disappear. can fix this?
<html> <body> <?php session_start(); $variable = $_session['getsessionvar']; ?> <span id = "name"><?php echo $variable ?></span> <button id="cmd" ><a href ="http://www.web2pdfconvert.com/convert"> generate pdf </a></button> ..tags closed.
when run script, variable value shown pdf converter not picking up. there wrong code? else, other web-to-pdf generator can use can pick php or js values written html?
thanks!
update - can't seem convert get/post or session variables in php script pdf though assign them html division. tried assigning php variable js , using
document.getelementbyid('id').innerhtml = "<?php echo #var_from_prev_page"?>";
however, can print , convert php variables create on page.
session,post , can't show in pdf.
the reason pretty simple actually.
the site using using reference
of request "crawl" page
so session id diferent therefore can't have $_session loaded since never browsed site before, , don't post page since clicking on link , not sending them data send site.
the way acheive want have way change ref
of request , add get
clicking a
link , have load variables in php script.
if want test actually, compare echo session_id();
output browser , pdf get.
Comments
Post a Comment