Browsers dont go back to the server when you give them an internal ("#") link. Even when you think adding get-parameters would work, it often doesn't due to caching, so you can either
If your php page returns a constant result (up to arguments) then the caching problem goes away, and you can just use ?get=args#internallink. Note that the ? must come before the #.