break; } return; } # If we have no MID and no NAME, go back to search page if (empty($_GET["name"])) { header("Location: index.html"); return; } # Still here? Then we need to search for the movie: switch ($_GET["searchtype"]) { case "nm": require_once "imdb_person_search.class.php"; $search = new imdbpsearch(); $headname = "Person"; $results = $search->search($_GET["name"]); break; default: require_once "imdbsearch.class.php"; $search = new imdbsearch(); if ($_GET["searchtype"] == "episode") { $results = $search->search($_GET["name"], array(imdbsearch::TV_EPISODE)); } else { $results = $search->search($_GET["name"]); } $headname = "Movie"; break; } echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n"; echo "<HTML><HEAD>\n"; echo " <TITLE>Performing search for '" . $_GET["name"] . "' [IMDBPHP2 v" . $search->version . "]</TITLE>\n";