// file view_pattern.php // // This will retrieve and display all information that is stored // a given pattern. If none is previously selected, it will also // generate a complete list of names/aliases to allow a choice. // // arguments: // patternid= // or (if not passed/set) // name= // // determine the desired pattern from the query URL if (isset($_GET["patternid"])) { $pid = $_GET["patternid"]; $pname = ""; } else { $pid = -1; if (isset($_GET["name"])) $pname = $_GET["name"]; else $pname = ""; } include("dbsetup.php"); // connect to database include("patternsubs.php"); // common functions include("specialText.php"); if ($pid == -1 && $pname == "") { // load up a form and let them choose! genheader("Select a passing pattern"); ?>