Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
![]() |
•
•
Join Date: Nov 2004
Location: Milwaukee, WI
Posts: 62
Reputation:
Rep Power: 5
Solved Threads: 0
Alright - I'm stumped. I need to get a variable from file1.html to file2.php which is called like this from file1.html:
<script src="scripts/file2.php" type="text/javascript"></script>
In file1.html I have the variable definition to grab the referring URL -
But I need to get 'referringURL' into that PHP file.
Any suggestions?
Thanks.
<script src="scripts/file2.php" type="text/javascript"></script>
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.
Web Design in Wisconsin : Milwaukee Web Design : Second Platform
![]() |
Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
- Pass Javascript variable to PHP code (PHP)
- Learning PHP but problem with script (PHP)
- Problem with javascript variable and hidden input (ASP.NET)
- javascript variable in jsp session (JSP)
- How to store javascript variable in jsp session (JSP)
- How Can I Pass A PHP Variable From One .php page to another (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Simple number...
- Next Thread: Can javascript do session variables?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode