I have a web page with an iframe. This iframe's source is from a webpage that is not on my server. I want to get the url from the iframe (after say its been navigated a little bit so it isnt the original source) and store this url as a php variable named $variable for example (and if this isnt possible write the url to a mysql database)
I don't see how you are going to be able to do this because you will need to reload the page to get the new iframe url but the default one will still be there not the new one. Javascript can't read the iframe url because its not on the same server as yours. You would some how need the external site to send back the url to a file on your server.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
reloading isnt a problem as long as i can get the iframe's url and then send it to the reloaded page and get it into a php variable (with a link or button to reload the page activating the script)
That is the problem. Reloading the page will put the same url in the iframe that the page originally started with, not the url that the user stopped on. There is no way to get the active url of the iframe. JS can't do it for security reasons and php won't know the iframe changed because again once the page reloads the iframe goes back to its default url.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
teh frames[0].location javascript will show the iframe's url, if i could add that to a link kind of like this http://mypage.com/blah.php?url=<javascript>
then i could use a php $_GET to get the iframe's url, i just dont know how to input the javascript at the end of the link or if it would even work