View Full Version : Get iFrame URL and Write It??
DigiplayStudios
03-26-2010, 04:15 PM
Hi There,
Does anyone have a code to get the URL from an iFrame inside a PHP page and then write that URL into a variable?
djr33
03-26-2010, 09:16 PM
That's not possible like that. PHP does not have access to serverside information. The best you can do is find out the request URI, but that will just give you the page, not whether or not it is in an iframe, etc.
Javascript can better attempt this but there are security restrictions on information, such as not allowing you to find the URL for an iframe loading a page outside your domain.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.