in reply to HTTP referer

Im an idiot. I found the problem... it wasnt the code, that code works great. stupid me is all.