Passing a Javascript variable to a PHP using <script> call
Alright - I'm stumped. I need to get a variable from file1.html to file2.php which is called like this from file1.html:
In file1.html I have the variable definition to grab the referring URL -
<script>
if (document.referrer) {
var referringURL = document.referrer;
} else {
var referringURL = "No referrer."
}
</script>
But I need to get 'referringURL' into that PHP file.
Any suggestions?
Thanks.
2ndPlatform
Junior Poster in Training
61 posts since Nov 2004
Reputation Points: 15
Solved Threads: 0
You want to turn a QueryString argument into a PHP variable?
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37