How To Return To a New Page

Discussion in 'HTML & Website Design' started by jaguarx, Nov 1, 2009.

  1. #1
    I learned how to use javascript to talk to server and have a PHP script running on server to send data back. I remember it took a little bit for me to allow the same page issuing those requests to receive the incoming data. Now I need to do the other way around i.e. having another page to show the incoming data. Can you direct me to the right websites to learn how to return to a new page please? Thanks in advance.



    Warren
     
    jaguarx, Nov 1, 2009 IP
  2. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In PHP:

    
    <?php
     //put this in an if the data is successful, etc.
     header('location: yourpage.php');
    ?>
    
    Code (markup):
     
    LeetPCUser, Nov 2, 2009 IP