try this:
<script type="text/javascript">
document.location.reload()
</script>
I have tested it and it works, but let me me know if w need to investigate further
Main Topics
Browse All TopicsHi,
I have a page in which i have iframe whose src is a html file.
The html file has a text field .Its action is a php page which inserts the value into a table.
Currently the html page doesnot show up after i click on submit button but the value get inserted into the table.
If i click on refresh button on the browser the html page inside the iframe appears.
But i want html page to reappear after insertion into a table i.e from php page.
i have tried echo "<script>window.location.r
Please guide
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It looks like you can't manipulate frames with PHP. See this forum post:http://forums.whirlpo
It looks like if you want to redirect back, you will need to use JavaScript. See this post:http://www.pageresour
Frames are a pain. I don't use them anymore
There's another option that I've used. Create a function in JavaScript that changes the form action to be itself, but include a querystring indicator that tells the page that it needs to do the SQL update. Like this:
document.myForm.action = "myForm.php?update=yes";
Then on that same page at the beginning, check for that querystring.
<?php
if($_GET[update] == "yes") {
//do your SQL Insert here
}
?>
This way, when you first come to the page, 'update' isn't "yes", so the page will skip that SQL insert and load the page. But when you fill out the text box and click the submit button, the form submits to itself, but this time with 'update' set to "yes"... so it will do the insert and then load the same page. That should happen in the same frame.
Business Accounts
Answer for Membership
by: synxPosted on 2009-03-12 at 06:47:36ID: 23868166
I have done similar things with PHP. I assume that the form action on the first page is set to a different form that actually does the SQL update. You could add a line after the SQL update to direct the browser back to the first page like this:
header ("Location: $URL");
...where "$URL" is a variable set to the name of the first page. If you wanted the first page to show the value that was in the text box when you return to it, you could pass the value as a querystring in "$URL" and then have the first page check for the querystring... and display it in the text box if it's not blank. That way, the first time you browse to the page normally, the box would be empty. But if you are directed there from the SQL update page, it would contain a value.
Does that make sense?
There are other options as well. This is the way I am currently doing it with a few of my own pages.