Jump to content

inline frame


baho

Recommended Posts

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.


[color=green]<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>[/color]

Thanx.
Link to comment
https://forums.phpfreaks.com/topic/16484-inline-frame/
Share on other sites

you need to set the target of the form the iframe frame and the action to result.php (or whatever the page name is)
[code]
<form name="insert" action="result.php" method=post target="i_frame">
[/code]
if your result.php, just print the my_text
[code]
echo $_POST['my_text'];
[/code]
Link to comment
https://forums.phpfreaks.com/topic/16484-inline-frame/#findComment-68788
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.