Passing GET variables to <iframe>
I'm having trouble passing a variable to (3) <iframes> on an action page.
Example:
<table>
<?php do { ?>
<tr>
<td><INPUT TYPE="BUTTON" VALUE="<?php echo $row_getData['id']; ?>" ONCLICK="window.location.href='my_iframe_page.php?id=<?php echo $row_getData['id']; ?>'"></td>
</tr>
<?php } while ($row_getData = mysql_fetch_assoc($getData)); ?>
</table>
Below are the <iframes> that are part of my_iframe_page.php
<div align="center">
<p>
<iframe src="page1.php?id=<?php echo "".$_GET['id']."";?>"></iframe>
</p>
<p>
<iframe src="page2.php?id=<?php echo "".$_GET['id']."";?>"></iframe>
</p>
<p>
<iframe src="page3.php?id=<?php echo "".$_GET['id']."";?>"></iframe>
</p>
</div>
How do I pass this ID to all three <iframes>? Is this the correct way to go about doing this?
Should I use a POST instead?
I have also attempted to echo and use the following with no success in the <iframe>, but I am able to successfully echo it on the page with no issue.
<?php $recid = urldecode($_GET['id']); ?>
Thanks!