GetOpenid($state); $host='http://'.$_SERVER['HTTP_HOST']; echo $openId;exit; //echo $state; switch($state){ case 1: $url=$host.'/core/ORDER_LIST1.ASP?openid='.$openId; break; case 2: $url=$host.'/core/ORDER_DETAIL1.ASP?openid='.$openId; break; case 3: //echo 111; $url=$host.'/core/CUSTOMER_LIST1.ASP?openid='.$openId; //$url='/core/CUSTOMER_LIST1.ASP?openid='.$openId; break; case 4: $url=$host.'/core/CUSTOMER_EDIT1.ASP?openid='.$openId; break; } Header("Location: $url"); //$responses=http_request($url);