Forum Moderators: coopster
<?php
$pgstr='"' . $page . '.inc"';
echo $pgstr;
include($pgstr);
?>
The $page variable is REQUESTed from the URL. The code block above is supposed create a string, and then include that string.
About the string - if $page="Contact" the string needs to be "Contact.inc".
It's not working. No error messages, the rest of the page executes fine. It just seems to ignore the include line.
I put the echo $pgstr; in to test that it formed the string properly - that does work.
Any suggestions?