Jump to content


Photo

inline frame


  • Please log in to reply
1 reply to this topic

#1 baho

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.


<html><body>

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


</body></html>


Thanx.

#2 nogray

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'];

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users