$value){ if ($key != "cat") {die('There has been a problem with the link.');} if ((strlen($value) < 3) OR (strlen($value) > 4)) {die('There has been a problem with the link.');} $category = htmlspecialchars($_GET["cat"]); } // determine category and sub-category so include link can be assembled $firstchar = substr($category,0,1); $secondchar = substr($category,1,1); $lastchar = substr($category,2,1); if (($secondchar != "P") AND ($secondchar != "R") AND ($secondchar != "I") AND ($secondchar != "V") AND ($secondchar != "T")) {die('There has been a problem with the link.');} if ($secondchar == "P") {$secondchar = "category" . $firstchar . "/processes";} if ($secondchar == "R") {$secondchar = "category" . $firstchar . "/results";} if ($secondchar == "I") {$secondchar = "category" . $firstchar . "/improvement";} if ($secondchar == "T") {$secondchar = "category" . $lastchar;} if ($secondchar == "V") {$secondchar = "overview";} $include = "aqip/systemsportfolio/" . $secondchar . "/" . $category . ".inc"; ?> AQIP Systems Portfolio