public function delete() { $location = $_GET["location"]; Location::delete_location($location, $this->connection); header("Location: " . $_SERVER["HTTP_REFERER"]); }