•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 426,876 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,338 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 8945 | Replies: 1
![]() |
•
•
Join Date: Nov 2004
Location: Milwaukee, WI
Posts: 62
Reputation:
Rep Power: 4
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- 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?



Linear Mode