adamriley Posted January 14, 2010 Share Posted January 14, 2010 Hi this script used to work and i think that i must of changed it wrongly url "index.php?a=form&b=php&c=1" index.php ---------------------------------- <?php $directories = array(1=>'1'); if (isset($_GET['a']) && isset($_GET['b']) && isset($_GET['c']) && $_GET['c'] !='' && $_GET['a'] != '' && $_GET['b'] != '') { $a = $_GET['a']; $b = $_GET['b']; $c = $_GET['c']; if (!isset($directories[$c]) && !@include($directories[$c].'/'.$a.'.'.$b)) { echo 'Page you are requesting doesnt exist'; } } else { include ('error.php'); } ?> Link to comment https://forums.phpfreaks.com/topic/188486-url-parameters/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.