I am using PHP-based CMS, which uses <include> to add the page header and footer, and the contents of the page are retrieved from the database using PHP / MySQL.
I want to create a button on a page that loads the page as an HTML file - just as if you copied the page source to an empty file or saved the page in your browser.
Normally I would use PHP to find the file and load it, since this is a CMS page created, it is not the actual file.
Does anyone know how to achieve this?
(ps - the purpose of this is to create a downloadable HTML email file)
source share