SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    midnight coder
    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?

  2. #2
    SitePoint Member
    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

  3. #3
    You talkin to me? Anarchos's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •