> However, $HTTP_REFERER is always null, even when I came from dummy.html > it is still null, never receiving the previous URL value. have you tried $_SERVER["HTTP_REFERER"] or $HTTP_SERVER_VARS["HTTP_REFERER"] ? chances are, http_referer is not an auto-global.