Basically what you have to do is pass the variable to each frame and any other page individually. If you have a frameset that would mean you have an index file or a frameset file which holds the html code for the frameset. This is where you have to distribute the variable.
I took 5mins and made a little sample for you 🙂
The way its gonna work is like this:
<frameset cols="157,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="NO" noresize src="left.php?newVar=<?php echo $textfield; ?>">
<frame name="mainFrame" src="main.php?newVar=<?php echo $textfield; ?>">
</frameset>
You have to determine the name for the variable that carries the value, in my case its "$textfield" from the first page. But then each of the frames have to have this code in them (or where ever in the frame you want your variable to appear):
<?php echo "$newVar"; ?>
Do you see how it all connects?
Basically we are sending the ORIGINAL var to the Index File that contains the frameset code. "left.php?newVar=<?php echo $textfield; ?>" That is telling the LEFT PAGE to recieve a value for the "$newVar" variable and that value = "$textfield"
I have attached the 4 files set...look at them. 🙂