hope someone can advise! . . .

i'm using this code...

Code:
<SCRIPT LANGUAGE="JavaScript">
 document.write("<INPUT type=hidden NAME=referrer VALUE=" + 'document.referrer' + ">");
</SCRIPT>
to generate a hidden field to be submitted with a php formmail script, so i know from which url the visitor has filled in the form. this works well, except for...