in reply to if statement based on HTTP_REFERER

Be aware (if it matters) that the REFERRER value is set by the client, and is therefore not to be trusted. In other words, it can be spoofed.

--MidLifeXis