RE: [PHP] Switch statement || How to output html without using echo() or print()
| From: | John W. Holmes | Date: | Sat, 25 Jan 2003 16:42:40 +0000 |
| Subject: | RE: [PHP] Switch statement || How to output html without using echo() or print() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133109@lists.php.net to get a copy of this message | ||
> I've got a simple switch statement that carries out one of several
> operations based on the switch statement variable value.
>
> Each operation has @ 50 lines of html -- do I have to echo or print
all
> this
> html!?
You could put your HTML into a separate file and just include() it
wherever you want it displayed...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/