or you could just reload the framset and pass variable to each of the pages linked, like this.
<frameset rows="100,*">
<frame name="top" src="top.php?variable="$whatever">
<frame name="bottom" src="bottom.php?variable="$whatever">
</frameset>
this way when you load the main frame set, each frame is reloaded with a variable and value.