Hey all, I'm trying to get this include to work but I can't for some
reason. Each file I'm trying to include is named articles.php, but the
directories are different. So I set up the link to my include.php file
like this
<a href="include.p hp?directory='. $articlename.'" >'.$articletitl e.'</a>
and on the reciving end
<?php include '/'.$_GET["directory"].'/articles.php'; ?>
The rest of the page comes up, but the incuded part is nowhere to be
found.
I'd appreciate any help anyone could offer.
Thanks,
RC.
reason. Each file I'm trying to include is named articles.php, but the
directories are different. So I set up the link to my include.php file
like this
<a href="include.p hp?directory='. $articlename.'" >'.$articletitl e.'</a>
and on the reciving end
<?php include '/'.$_GET["directory"].'/articles.php'; ?>
The rest of the page comes up, but the incuded part is nowhere to be
found.
I'd appreciate any help anyone could offer.
Thanks,
RC.
Comment