I hope I understood your question right.
You can do like this
<?php
if () {
?>
<b>html text</b>
<?php
else {
?>
<b>other html</b>
<?php
}
?>
> -----Ursprungligt meddelande-----
> Fran: Martin Thoma [mailto:[EMAIL PROTECTED]]
> Skickat: den 23 april 2001 14:41
> Till: [EMAIL PROTECTED]
> Amne: [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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]