Jump to content

[SOLVED] Iframe Get variable from parent window(main)


demon_athens

Recommended Posts

Hi there! and Happy new year to all the community

I have a php page with an iframe. Problem is that when I click from the menu the iframe doesn't GET the variable in order to dynamically change its content. I think that the solution maybe something like pointing that $_GET['variable'] is a value from parent window but I really don't know how to do it.

Example: I have a link that loads content.php?id=1. The content.php has an iframe that reads data from category 1 ( mysql table).

I can't parse the $_GET['id'] into iframe.

Any freak that could help?
I generally use Get variables in such situations. Session is a solution but probably the one that can cause problems if the end user is  behind an aggresive firewall. Searching the web I found some information about using javascript but I can get it work.Post is out of the question.

I can set the Get variable and the page that has the iframe can read it. The iframe cannot. cause its a different webpage...so any other suggestions?

thanks for your help onlyican.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.