How do I get, from which page/url the data in the $_POST variable come from :$_SERVER['HTTP_HOST'] ?
$_SERVER['HTTP_HOST']
You must use
$_SERVER['HTTP_REFERER']