I have a PHP page index.php contains javascript window.open code to make another page create_pdf.php popup and pass some PHP variables to it to create
index.php
create_pdf.php
Not sure I am following but you might want to try:
$pdf_link = "Create pdf";
or
$fullLinkWithParams = urlencode("http://mysite.com/create_pdf.php?text1=" . $text1 . "&text2=" . $text2); $pdf_link = "Create pdf"