Thank you for your response.
I notified the value of http_referer is blank in IE but shows in firefox. After spending a few minutes on google, I found out http_referer is not reliable as it can be tweaked and some browsers don't show it anyway.
So my question is instead of using cgi.Http_referer to show the value of the referring url, what other method is there?
Thanks