Jump to content


inline frame

  • Please log in to reply
1 reply to this topic

#1 baho

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 03 August 2006 - 06:59 PM

Can you help to solve this? How can I do so that when I click submit, text in the my_text should be seen in the inline frame.


<form name="insert" action="<?php echo $_SERVER['PHP_SELF']?>" method=post>
<input type=text name=my_text>
<input type=submit value=show>
<IFRAME name="i_frame" src="result.php" frameborder="1"></IFRAME>



#2 nogray

  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 03 August 2006 - 07:35 PM

you need to set the target of the form the iframe frame and the action to result.php (or whatever the page name is)
<form name="insert" action="result.php" method=post target="i_frame">
if your result.php, just print the my_text
echo $_POST['my_text'];


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users