Thanks for the reply.
I get what you're saying, and thanks for the pointer on the include().
The reason I can't simply build up the page is because I need the entire page structure to be parsed through a Var. like so
$pageContent="<html><body>".$bodycontent."</body></html>";
And $pageContent will be the content of an email. and $bodyContent will be a number of templates, (a loop getting data from the DB and generating a number of tables)
When I run the loop prior to where I state the Var (or anywhere) I end up getting the tables spat out on the page instead of the variable (and email)
The whole email function works fine, I just can't get the tables to go into the $bodyContent var...
So if I want to add an include page to be include in the $bodyContent var (in the email html page) how would I state it?
(the content in the included file is a php formatted table structure)