I want to be able to have a script that can handle two variables, like the link below.
http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=77
My current script can handle only one variable, <? if (!$p) {$p=""; } include("/web/sites/279/sesgalaxy/www.sesgalaxy.f2s.com/$p.php"); ?>
Thus, if the user went to a link which was v.php?p=foo , then they would go to foo.php
Lets say I wanted it to call foo.php from any directory other than the root directory (which is where v.php is stored), for example, foo. Therefore, the link would be: v.php?p=foo&directory=foo . Then it would call foo.php from the foo directory.
How can I accomplish this?
Thanks,
Kevin Byers