# Getting url variable from sub level page

**URL:** <https://forum.kirupa.com/t/getting-url-variable-from-sub-level-page/167946>\
**Category:** programming\
**Created:** [November 2, 2005, 5:09pm UTC](https://forum.kirupa.com/t/getting-url-variable-from-sub-level-page/167946 "2005-11-02T17:09:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrthad](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andrthad](https://forum.kirupa.com/u/andrthad)\
**Post date:** [November 2, 2005, 5:09pm UTC](https://forum.kirupa.com/t/getting-url-variable-from-sub-level-page/167946/1 "2005-11-02T17:09:34Z")

</div>

Hi all,

So close on this one.

I have an index.php that has an inline frame that shows the content of my website. I’m using a variable called page to define which page of content I want to show like so index.php?page=home.php. This is working great.

What I would like to do is read the page variable into my Flash menu that is located in home.php page contained within my iframe. If I use the $\_GET[‘page’] php code I get nothing because the variable is declared in the index.php page instead of the nested home.php page.

I hope this makes sense.
