Page 1 of 1
IFRAME and variables
Posted: Wed Dec 29, 2004 11:09 am
by SBukoski
I have a php file, let's call it page1.php. Inside that file there is an IFRAME that references another file, called page2.php. Is there anyway to access a variable defined on page2.php from page1.php?
Posted: Wed Dec 29, 2004 11:35 am
by Jade
I've found that if you post the variable from the main frame to the iframe you can access it that way, however I've had no success getting a variable from the page outside into the iframe. Maybe if it was a session variable or a global variable you'd have better success.
Posted: Wed Dec 29, 2004 7:47 pm
by wyred
Second that. I also think session variables would be a better solution.