1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

include file

Discussion in 'Web Design, HTML And CSS' started by Mariam, Sep 10, 2009.

  1. Mariam

    Mariam New Member

    Joined:
    Sep 9, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Suppose I have include.php file.

    Is it possible to include this file to index.php in that way that all variables that has been assigned in index.php , include.php must uderstand.
     
  2. Mariam

    Mariam New Member

    Joined:
    Sep 9, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    P.S. I used xmlhttp.open("GET",'include.php',true); to include the file
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Why not directly include('index.php');
     

Share This Page