Thanks for the suggestion. Here are my codes. When I submit "b" in the form page, I was expecting that I could have the output "ab" in frame_a, however, I only got "a" as the output. The input was not passed into frame_a.
What's my problem?
- In the form page, I have
<form action="frameset.htm" target="frame_a" method="post">
<input type="text" name="input">
<input type="submit" value="go">
</form>
- frameset.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A frameset document</TITLE>
</HEAD>
<FRAMESET rows="50%,50%">
<FRAME name="frame_a" src="frame_a.php">
<FRAME name="frame_b" src="frame_b.php">
</FRAMESET>
</HTML>
- frame_a.php
<?php
$a=$HTTP_POST_VARS["input"];
echo "a$a";
?>
π