Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > External Javascript + PHP question

External Javascript + PHP question
Thread Tools
Nerozwei
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Sep 4, 2003, 03:10 PM
 
I have a page that loads an external Javascript that has some PHP in it:

<- script language="JavaScript" src="http://www.example.com/javascript.php" ->

It works fine, the PHP is processed. The only problem is that I need to pass the URL of the page that has the link to javascript.php.

For example: If I had the HTML page in the address: http://www.anotherexample.com/index.html. Is it possible to pass that address to PHP? I tried $_HTTP[REFERER], but it didn't work...

I can't use PHP on the HTML page itself.
     
mzllr
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Sep 4, 2003, 05:00 PM
 
i think you want $HTTP_REFERER

try here... little ways down on the page.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:46 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,