Re: if... then... else with HTML

From: Date: Mon, 23 Apr 2001 12:46:35 +0000
Subject: Re: if... then... else with HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49838@lists.php.net to get a copy of this message
Ah, I forgott the {} ;-) <?php if(strstr($HTTP_USER_AGENT,"MSIE")) { ?> <center><b>You are using Internet Explorer</b></center> <? } else { ?> <center><b>You are not using Internet Explorer</b></center> <? } ?> Martin Thoma schrieb: > 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

« previous php.general (#49838) next »