display url in textfield
Posted: Thu Aug 28, 2008 9:16 pm
Hello again. I have a php script that allows you to have one url go to multiple urls randomly, one at a time of course.
So, http://mywebsite.com/whatever goes to one of the assigned urls, which is controlled by php. How can I have the url that was chosen be displayed in a textfield? The reason that I want to do this is that you cannot call the url from an iframe (where the random website will be loaded), except for the initial url.
I need the url of the page loaded in the iframe to make other scripts work with the correct page.
I know this sounds somewhat confusing, but I know it is possible somehow. Basically, I need my php script to display the random url in the iframe like it does already, but in addition send the chosen url to a textfield placed outside of the iframe.
Then, I would use the url in the textfield to make other scripts know what page is currently loaded in the iframe.
Thanks a bunch. This forum has been very useful to me.
So, http://mywebsite.com/whatever goes to one of the assigned urls, which is controlled by php. How can I have the url that was chosen be displayed in a textfield? The reason that I want to do this is that you cannot call the url from an iframe (where the random website will be loaded), except for the initial url.
I need the url of the page loaded in the iframe to make other scripts work with the correct page.
I know this sounds somewhat confusing, but I know it is possible somehow. Basically, I need my php script to display the random url in the iframe like it does already, but in addition send the chosen url to a textfield placed outside of the iframe.
Then, I would use the url in the textfield to make other scripts know what page is currently loaded in the iframe.
Thanks a bunch. This forum has been very useful to me.