Languages :: PHP :: decide what part of html code use - possible? |
|||
| By: PHP newbee |
Date: 26/02/2003 00:00:00 |
Points: 50 | Status: Answered Quality : Excellent |
|
Is possible to decide on some condition what part of html code will be used, if I don't want to write html code by echo "...."; echo "....";? Something like: html_code_common1 <? if(cond==1) do ?> ... html_code1 ... <? else do ?> ... html_code2 ... <? fi ?> html_code_common2 ... ??? thank you very much for answer Michal |
|||
| By: VGR | Date: 26/02/2003 04:24:00 | Type : Answer |
|
| absolutely <? if ($cond==1) { ?> htmlcode1 <? } else { ?> htmlcode2 <? } htmlcodecommon ?> |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








