Building page based on request?

From: Date: Mon, 10 Jul 2000 16:51:06 +0000
Subject: Building page based on request?
Groups: php.general 
Request: Send a blank email to php-general+get-5755@lists.php.net to get a copy of this message
Im trying to make a generic build.php3 page that will generate a page on the fly, based on user requested page. I think my problem lies with my if statement. What I want is links that point to something like build.php3?content=news.php3 This would insert the include ("$content") statement, and thus display the target page. <? if (isset($content) echo "<? include ($content) ?>"; } ?> or <? if (isset($content) include ($"content") } ?> Thank you in advance, James C. Montz This is the complete page; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta http-equiv="Content-Language" content="en-us"> <title>Linux @ ncn.net</title> </head> <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0"> <? include("header.php3") ?> <div align="center"> <table border="0" width="100%" cellspacing="0" cellpadding="4"> <center> </center> <center> </center> <tr> <td width="150" valign="top" rowspan="2"> <? include("left_bar.htm") ?> </td> <td valign="middle" align="center" width="1" rowspan="2"><br> <p>&nbsp;</p> &nbsp; <p>&nbsp;</p> &nbsp; </td> <td valign="top" align="center"> <? if (isset($content) echo "<? include ($content) ?>"; } ?> </body>

« previous php.general (#5755) next »