anyone know an easy way to create a bunch of html for use as a variable... so if a somtin's set return this bunch of html if not, that. i'd like to avoid creating a bunch of web pages and using includes... just not sure the syntax for this.
many thanks.
You can assign as much as you want to a variable, such as:
$content = "<html>....</html>";
where ... can be as much as you want, and then if you want to send it to the clients, just say:
echo $content;
Or you could use output buffering:
<? ob_start(); ?>
<!-- Put all your html in here -->
<? $output = ob_get_contents(); ob_end_clean(); ?>