Assuming the generated page is stored in a variable $page:
echo '<textarea name="source">'.htmlspecialchars($page).'</textarea>';
Well, that's the problem, I don't really know how to store the generated page in a variable, because on the php page, it has a bunch of variables and stuff, and I don't know how to get it all stored into a variable. I tried simply doing like:
[PHP]$page = "<html><body>content...";[/PHP]
But that didn't seem to work. But maybe it's because I wasn't using that htmlspecialchars thing?
But I'll try that with what you gave me and see if it works.
Thanks.