baho Posted August 3, 2006 Share Posted August 3, 2006 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 More sharing options...
nogray Posted August 3, 2006 Share Posted August 3, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.