Re: Building page based on request?

From: Date: Mon, 10 Jul 2000 19:57:30 +0000
Subject: Re: Building page based on request?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-5801@lists.php.net to get a copy of this message
How can this be used to handle a variable number $content statements? i.e. a link like http://whatever.com/build.php3?content=news.php3+links.php3+files.php3 And thereby inserting multiple number of include($content)? Would I have to tear apart the string, then read the variables into an array? Is there something simpler? <?php if (!isset($content) || empty($content)) $content = 'some_default'; include $content; ?> Thanks in advance! ______________________ James C. Montz Systems Engineer Northwest Internet Services jmontz@ncn.net < SNIP > > > <? > > if (isset($content) > > > > echo "<? include ($content) ?>"; > > } > > ?> > > How about: > <? > if ($content) { > include ("$content"); > } > ?>

« previous php.general (#5801) next »