Hi,
problem solved :-)
I tried everything you suggested, Weedpacket, but without much success. $exporter was set and was going through. For some reason though, php seems to have a problem with having two of those javascripts one after the other.
i.e. - in the following sequence:
if($logged_in)
{
echo "<script>top.details.location=\"booking.php?exporter=$exporter\"</script>";
echo "<script>top.action_bar.location=\"actionbar.php?exporter=$exporter\"</script>";
}
booking.php in the 'details' frame was fine, BUT, actionbar.php in the 'action_bar' frame was not.
If I switched the two scripts around, then booking.php in the 'details' frame didn't work but, actionbar.php in the 'action_bar' frame did! Go figure!
To solve my problem, I've removed the first script and put it inside actionbar.php.
i.e. in login.php I've got...
if($logged_in)
echo "<script>top.action_bar.location=\"actionbar.php?exporter=$exporter\"</script>";
and inside actionbar.php, I've got...
if(!isset($action))
$action = "booking";
if($action == "exit")
...
elseif( $action == "weeks")
...
elseif($action == "booking")
{
echo "<script>parent.frames.details.location=\"booking.php?exporter=$exporter\"</script>";
...
}
else
...
And it works like a charm!
Thanks for all the help none the less. I learnt a lot from all the responses.
Cheers (oh, the demo, albeit late, went just fine ;-))
Cheers