I was wondering...
I have this html for example generated dynamically with php:
<div>
<ul>
<li>Some content</li>
</ul>
</div>
This content will change always depend of the user input. So my question.. is possible to save the html generated after render the page in a $_SESSION
variable and then return it in another page?
The only idea I have is:
//after query the sql
$_SESSION['html'][] = 'html content';
echo 'html content';
so after render all the page I will have all my html stored in the $_SESSION['html'] variable... but doesn't look good :S