我有一个php页面,它会产生curl请求并在结果中获取一个字符串
function changePassword($oldPassword,$newPassword,$newPasswordCnf)
{
//Get the user
$loginUser = @$_SERVER['PHP_AUTH_USER'];
$pos = strpos($loginUser, '@');
$position = $pos+1;
$user = substr_replace($loginUser, 'ad.', $position, 0);
$url = "http://127.0.0.1:13000/".$oldPassword."/".$newPassword."/".$user."/";
$curl_xv = new CurlRequest();
set_time_limit(60);
$output_message = $curl_xv->Request ( $url );
//print($output_message);
}
并且页面上有一个,我想在该div中显示$ output_message。怎么做?