I have a page, lets call it test.php. On this page is an iframe which is linked to lets say test2.php. Now on test2.php, i have a sort of navigation which looks like this:
Code:
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="secondary">
<tr>
<td></td>
<td align="center"><a href="<?php echo "$PHP_SELF?x=$x&y=".( $y - 20 )."" ?>">UP</a></td>
<td></td>
</tr>
<tr>
<td align="center"><a href="<?php echo "$PHP_SELF?x=".( $x - 20 )."&y=$y" ?>">LEFT</a></td>
<td align="center"><a href="<?php echo "$PHP_SELF?x=200&y=180" ?>">HOME</a><br><a href="java_script_:window.location.reload()">REFRESH</a></td>
<td align="center"><a href="<?php echo "$PHP_SELF?x=".( $x + 20 )."&y=$y" ?>">RIGHT</a></td>
</tr>
<tr>
<td></td>
<td align="center"><a href="<?php echo "$PHP_SELF?x=$x&y=".( $y + 20 )."" ?>">DOWN</a></td>
<td></td>
</tr>
</table>
so when you click one of these links in the iframe, the url for test2.php becomes something like this: test2.php?x=100&y=100
Numbers basically get assigned to x and y.
My question is, from test.php, how would you obtain the values x, y which is used in the iframe? So that basically, in test.php if you echo'ed $x, it would be 100, and $y would be 100.
*i don't think target would be an answer because i need the x, y values to be intact in that iframe.