RE: [PHP] if... then... else with HTML
| From: | Taylor, Stewart | Date: | Mon, 23 Apr 2001 12:45:01 +0000 |
| Subject: | RE: [PHP] if... then... else with HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49839@lists.php.net to get a copy of this message | ||
<?php
if (condition)
{
?>
HTML
<?php
{
else
{
?>
HTML
<?php
}
?>
-Stewart
-----Original Message-----
From: Martin Thoma [mailto:martin@radiok2r.de]
Sent: 23 April 2001 13:41
To: php-general@lists.php.net
Subject: [PHP] if... then... else with HTML
Hello !
I want to do something like
if (condition)
output this html-block
else
output that html-block
Without printig or echoing the html-block out (because the block has a
lot of ", which I all would have to slash out...)
How can I do that ?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net