eradio Posted December 4, 2006 Share Posted December 4, 2006 I need to know the proper syntax for allowing more then one section in this include.This code below allows a "top" include only if this section loads. <? if($section == "frontpage") { ?> How would I add another section. I tried commas, quotes and a few other variations.<? if($section == "frontpage, [color=red]another section, more sections[/color]") { ?> Whats the magic formula?Thanks for the help Link to comment https://forums.phpfreaks.com/topic/29430-basic-syntax-how-to/ Share on other sites More sharing options...
chiprivers Posted December 4, 2006 Share Posted December 4, 2006 do you mean optional values?<? if($section == "frontpage" || $section == "another section") { ?> Link to comment https://forums.phpfreaks.com/topic/29430-basic-syntax-how-to/#findComment-135054 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.