header("Content-Type:text/html;charset=utf-8");
$typeid = $_REQUEST['typeid'];
$q = $_REQUEST['q'];
$qq = iconv("gb2312","utf-8//IGNORE",$q);
if($typeid==1){
$url = "http://so.keyin.cn/search.php?q=$qq&f=title&s=pubdate_DESC";
}else if($typeid==2){
$url = "http://products.keyin.cn/plus/search.php?keyword=$qq";
}else if($typeid==3){
$url = "http://jobs.keyin.cn/jobs/jobs-list.php?key=$q";
}else if($typeid==4){
$url = "https://www.baidu.com/s?wd=$qq";
}
header("Location:".$url);
exit;
//echo $url;
?>