Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl to input the referring frame

Status
Not open for further replies.

hermes1

Programmer
Oct 22, 2003
38
US
Ok basically i need to know if this is possible. I call perl code through an <iframe> and i wanted to know if it was possible to take in somehow the src from the <iframe>.


so if the iframe is this:


<iframe width=40 height=40 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="
can the " value be obtained by the script somehow?
 
I don't understand your question and judging by the lack of responses maybe nobody else does either. Rephrase the question and maybe someone can help you.
 
Yes, i agree but i think is more that what i am looking to do is unusual. I guess is there any way for a Perl script to see the src="" link of an <iframe> that refered it. The actual link will have more data in it i need the script to read.
 
Actually the question was very well stated in my opinion and was pretty clear. I just think that since the majority of real programmers and designers don't use iframes this isn't something a lot of people are used to doing..

If you are using SSI or the exec code to launch an in-page script, all you need to do is check the $ENV{"referer"} and it should work. If for some reason it doens't (which it should), you can pass paramaters to the script itself through the script call (SSI or the exec code).
 
is there such an environment variable as $ENV{'REFERER'}?


Maybe in the script test.ggi, you can try using $ENV{'HTTP_REFERER'} to get the referring url but I am not sure what the results will be running the script in the manner you are. But give it a try and see what you get.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top