Location: PHPKode > scripts > YouTube Clone Script > youtube-clone-script-103930/search_redirect.php
<?php

include "config.php";
if(isset($_GET['search_tag'])){
	$_GET['search_tag']=stripslashes($_GET['search_tag']);
	$_GET['search_tag']=str_replace("'",'%27',$_GET['search_tag']);
	$_GET['search_tag']=str_replace('"','%22',$_GET['search_tag']);
	$_GET['search_tag']=str_replace(" ","+",htmlspecialchars($_GET['search_tag']));
	Header("Location: $site_url/tag/$_GET[search_tag]");
} else {
	Header("Location: $site_url");
}

?>
Return current item: YouTube Clone Script