Forum Moderators: coopster
For example -
// url = example.com/iframe?page=important_page
echo "You are viewing: {$_GET['page']});
$url = example.com/something/important_page
$bits = explode('/', $url);
$length_bits = count($bits);
$final_bit = $bits[$length_bits-1];
echo "You are viewing: $final_bit"
That is also assuming you are reloading the contents of the iframe when you change the page. So lots of assumptions...
[edited by: PHP_Chimp at 9:03 pm (utc) on Jan. 7, 2008]