Jump to content

Archived

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

baho

inline frame

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.

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

×

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.