", "<", "'", "%22", "%3E"); $my_search = str_replace($replace_char, "", $my_search); $my_search = trim($my_search); //GET MATCH TYPE DATA FROM SEARCH BAR AND SAVE IT AS A SESSION if($_POST['match_type'] != ""){ $match_type = mysql_real_escape_string($_POST['match_type']); } if($_GET['match_type'] != ""){ $match_type = mysql_real_escape_string($_GET['match_type']); } if(!$match_type){ $match_type = "all"; } //UNSET ANY PREVIOUS NEXT BUTTON unset($_SESSION['imagenav']); //UNSET ANY SEARCH BAR DATA unset($_SESSION['search_match_type']); //GET ANY NEW CHANGES IN THE SEARCH BAR DATA session_register("search_match_type"); $_SESSION['search_match_type'] = $match_type; //UNSET ANY IMAGE VIEWING unset($_SESSION['pub_gid']); unset($_SESSION['pub_pid']); ?>