php URL Query String
Posted: Mon Oct 27, 2003 1:51 pm
Hey guys, I am still very new to php, but I found the code
ini_set('include_path', '');
switch ($_GET['get']) {
case 'legal':
include('legal/legal.php');
break;
default:
include('error.php');
break;
}
that turned my URL into something like
"http://localhost/index.php?get=legal"
but my problem is that it only links one page, what would I need to do if I wanted the "http://localhost/index.php?get=" to open a file inside
"bin/test/file.php" dirctory? that might look something like
"http://localhost/index.php?get=bin&keyword=file"
I hope that makes sanse.
Thanks guys
ini_set('include_path', '');
switch ($_GET['get']) {
case 'legal':
include('legal/legal.php');
break;
default:
include('error.php');
break;
}
that turned my URL into something like
"http://localhost/index.php?get=legal"
but my problem is that it only links one page, what would I need to do if I wanted the "http://localhost/index.php?get=" to open a file inside
"bin/test/file.php" dirctory? that might look something like
"http://localhost/index.php?get=bin&keyword=file"
I hope that makes sanse.
Thanks guys