In my index.php file I have this
$answer = $a + $b;
echo '<iframe src="ianswer.php".....etc. etc.
ianswer.php contains only the following line
But the ianswer.php doesn't know what $answer is.
If I change that line to
The word RUBBISH appears in the iframe.
How do I get it to display the answer?
I searched the web and played around with GLOBAL, $GLOBALS and $_SESSION but none of the examples I found work.