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. Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.