Drew010,
Thanks for the prompt replies. I tried your code, but know my iframe shows an error:
Notice: Undefined variable: posted in c:\inetpub\wwwroot\test\cus.php on line 270
Line 270 is the line commented out:
//Beginning of Form
<table width="100%" border="0" cellspacing="0" cellpadding="0"><form action="bmibodyfat.php" method="GET" target="bmi">
//End of Form
</tr>
<tr>
<td><font color="#000000">Calculate BMI:</font></td>
<td><input name="formbmi" type="submit" value="Get BMI"></td>
</tr><input type=hidden name=posted value=1></form>
</table></td>
<td valign="top" bgcolor="#FFFFCC">
<?php
// This is line 270 if($posted) {
echo "<iframe name=\"bmi\" id=\"bmi\" src=\"bmibodyfat.php\" height=\"100%\" width=\"100%\">";
echo "</iframe>";
}
?>
</td>
</tr>
</table>
My page is html, and the only php code there is, is the one you gave me... the rest of the pages are php. I don't know if this is of any help.
Now, I "could" live with that Notice, but now, when I click on the submit button, it opens a new page, with the right info, but it won't refresh the iframe with the info. I don't want a new page... mmmhhhh... to early to be fighting with php, but oh well...
Thanks a lot...