Jump to content

Recommended Posts

Alright I am so close but can not figure this out, thanks in advance for any help.

 

So what I am trying to do is take the input variables from a form and have them load a specific PDF .

<html>
<body>
<?php
if( $_GET["startpoint"] || $_GET["endpoint"])
{
$a = $_GET["startpoint"];
$b = $_GET["endpoint"];

echo "Your Startpoint is:". $_GET["startpoint"]. "<br />";
echo "Your Endpoint is: ". $_GET["endpoint"]. "<br />";
echo  $a,$b,".pdf";

}
?>

</body>	
</html>

This is what I have and it works to display what the two points are what the final pdf file should be. 

 

The final echo generates the PDF name 

echo  $a,$b,".pdf";

How can I get it to load a file using this as a variable or the name it generates, thanks.

Link to comment
https://forums.phpfreaks.com/topic/294181-open-pdf-file-from-variable/
Share on other sites

Why are you creating a new thread for this? I answered this question in your last thread. Please continue the discussion in your original thread if you don't understand something instead of creating a new one.

Edited by CroNiX
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.