in reply to HTTP_REFERER

It's also possible that there was no referer. If the first page accessed after the browser was opened was your script then their will not be a referer.