Jump to content

url parameters


adamriley

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.