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?
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.