Dear... i am not asking for form request.. i am just asking about to call pages in index.php Page from different directories and subdirectories i hope u got my question now...
For example if i wanted to go to this URL:
http://www.domainxyz.com/index.php?dir=/path/to/file/&file=myPage.php
You can re-direct to that page by using header(), but In your case I think you want to just display that page. In that case
[PHP]
<?php
$fileToOpen = $_GET['dir'] . $_GET['file']
if(file_exists($fileToOpen))
{
include($fileToOpen);
}
else
{
print("Sorry, This page does not exist");
}
?>
[/PHP]
Hope that helps. Good luck,
Dan