Posted by Christoph Burschka on 11/02/07 16:03
Shelly wrote:
> Good tip. Thanks. I ususally do that. In this case, however, the html is
> being prepared for an email and so it has to be done this way.
Mh... I can think of a way to get around that (though probably overkill in this
case):
<?php
ob_start(); // redirect all output to the buffer.
?>
some html here, which will go to the buffer instead of the screen.
<?php
$email_text = ob_end_clean(); // get buffer content, clear buffer, stop buffering.
?>
--
Christoph Burschka
[Back to original message]
|