47 users online (1 members and 46 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 4
  2. Get data in same HTML page    Forum: HTML Forum
    Replies: 1
  3. html page break    Forum: HTML Forum
    Replies: 3
  4. Passing variables from HTML page to page    Forum: HTML Forum
    Replies: 1
  5. Replies: 7
  1. #1
    Lamont1701's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Location
    New Jersey, USA
    Posts
    18

    How do you use the “include function” to put a HTML Page (top.htm) onto a PHP Page?

    How do you use the “include function” to put a HTML Page (top.htm) onto a PHP Page? (member.php)


    I would like to Thank You, in advance for any help!

  2. #2
    firmaterra's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    81

    Re: How do you use the “include function” to put a HTML Page (top.htm) onto a PHP Pag

    Hmm, When you directly include a page with PHP you literally include it. If you're trying to include a HTML page in a PHP page you're going to get lots of errors, mostly thrown by the clash of <> tags in HTML and <? ?> tags in PHP.
    What you might be referring to is a templating engine where you can inlcude templates and merge them all together - like say header, body and footer templates which are presented to the end user as once complete HTML page.
    Check out http://www.smarty.net/ as an example of what I'm on about.