Ok, I've decided to change my method. I will buffer the output of the script "display.output.php" in a variable called $output. This is the easiest way to do it.
But how do I assign the following output to the variable $output without making change to the code?
PHP Code:
?>
<table bgcolor="<?php echo $bgcolor1; ?>" border="0" cellspacing="0" cellpadding="0" width="<?php echo $width; ?>">
<tr><td><table border="<?php echo $border; ?>" cellspacing="<?php echo $cspace; ?>" cellpadding="2" width="100%">
<tr bgcolor="<?php echo $bgcolor1; ?>"><td align="center" style="color:<?php echo $txtcolor1; ?>; font-family:<?php echo $fontface1; ?>; font-size:<?php echo $fontsize1; ?>; font-style:<?php if ($fontstyle1 == "i" or $fontstyle1 == "bi") {echo "italic";} else {echo "normal";} ?>; font-weight:<?php if ($fontstyle1 == "b" or $fontstyle1 == "bi") {echo "bold";} else {echo "normal";} ?>">
<?php
I've tried the following but it doesn't really work:
PHP Code:
$output = "
?>
<table bgcolor="<?php echo $bgcolor1; ?>" border="0" cellspacing="0" cellpadding="0" width="<?php echo $width; ?>">
<tr><td><table border="<?php echo $border; ?>" cellspacing="<?php echo $cspace; ?>" cellpadding="2" width="100%">
<tr bgcolor="<?php echo $bgcolor1; ?>"><td align="center" style="color:<?php echo $txtcolor1; ?>; font-family:<?php echo $fontface1; ?>; font-size:<?php echo $fontsize1; ?>; font-style:<?php if ($fontstyle1 == "i" or $fontstyle1 == "bi") {echo "italic";} else {echo "normal";} ?>; font-weight:<?php if ($fontstyle1 == "b" or $fontstyle1 == "bi") {echo "bold";} else {echo "normal";} ?>">
<?php
";
Bookmarks