I am using a function to collect all information needed to build a report using mpdf, but to keep it simple I passed all values to a separate php file and then in the second php file it builds the html code which is passed back.
It is currently passed using the $_GET method, but now I am getting an error that the URI is to long
...
Is there a way to pass all the values to the php file using the $_POST
method without a from and a submit button?
I want to just add it to the function not disrupting too much code...
Note:
using $_SESSION would not be an option, as I am calling the php file to build the function from a remote website with the code below, and using the result to build the pdf file...
Code:
$body = file_get_contents("http://mywebsite.com/templates/statement/body.php".);
Any assistance would be much appreciated.