$_SERVER['HTTP_REFERER']
问题 I am making a report problem link on my website and I want it to email me the last address they were on before clicking on the report link. I know/think you use $_SERVER['HTTP_REFERER'] but I dont know how to put that in the mail code?So how would you write that here is my mail code with out it. Mail("email@email.com", "Subject", "Message"); echo "Report Sent"; 回答1: The message should be a variable that you can put information in: $message = "Error report: <p>Last site visited: {$_SERVER[