var page_my_code_is_on = (document.referrer);
document.write("<?php echo '" + page_my_code_is_on + "'; ?>");
how can I write the above php as a var within the js, as opposed to echo ?
I read the following but it did not work for me
http://www.webcheatsheet.com/PHP/passing_javascript_variables_php.php
echosomething after rendering, that's not how PHP works.