I want to echo exact url : http://domain.com/mystuff.html#123456
but it only print http://domain.com/mystuff.html
how to include the #123456
? so become http://domain.com/mystuff.html#123456
my code so far
$urladdress = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']."?".$_SERVER['QUERY_STRING'];