SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
May 4, 2001, 03:39 #1
- Join Date
- Dec 2000
- Location
- The flat edge of the world
- Posts
- 838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have a page (index) which can submit comments, user clicks a link, which opens a popup PHP script that allows users to register, submit, add message, etc.
After they post, and click on the submit button on the popup PHP script, I want it to refresh the original index page, to show the latest comments.
How can I get the php script to refresh the index page which is in another window?
-
May 4, 2001, 04:39 #2
- Join Date
- Apr 2001
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can't do it with the PHP, but you could do it with JavaScript. On the page the form is submited to (at some point after the PHP has finished!) put this bit of JavaScript in the html:
<script language="javascript">
<!--
opener.history.go(0);
//-->
</script>jonathan
-
May 4, 2001, 05:50 #3
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You should do opener.location.reload() instead.
Bookmarks