I have a HTML page that stored in PHP variable that I want to pass to another page.
It's a big page that includes a lot of text and HTML tags.
How can I pass this variable?
I tried this:
echo "
<form action=\"toPrint.php\" method=\"post\">
<input type=\"hidden\" value=\" {$output} \">
<button class=\"btn btn-info\">go to print page</button>
</form>";
But obviously it didn't work.
(Because this vaiable includes alot of html tags, it simply printed the text. probably the quotation marks inside the text, mess this up)
The reason I want to do this is because I want to send the page to a special PHP page that will present a printed version of the page without all of the menus around.
Is there other way to do that?
Thanks!