<?php
$ref = $_SERVER['HTTP_REFERER']; 
echo "Referans sayfa: $ref";
?>