yes, consider this:
<html>
<body>
<? if (isset($name)) { ?>
your name is <?=$name?>
<? } else { ?>
<h1>name is not set!</h1>
<? } ?>
</body>
</html>
-elias
http://eassoft.cjb.net
"Martin Thoma" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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]