#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    19
    I have an html form like this:

    <html>
    <head>
    <title>whatever</title>
    </head>
    <body>
    INFO HERE.
    (here i want it to auto-load a part or a page like "bottom.html")
    </body>
    </html>

    and when the user views source they only see 1 complete html but 2 are loaded into the same window. how would i do this?
    I know i could use frames but i wanna have some html code that wherever i put that code it loads in that place.
    How would I do this in:
    1)html
    2)php
    3)perl or cgi

    Thanks ahead of time!!

    -Ken
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    6
    Rep Power
    0
    hmmm... can't answer exactly. but you can do it with server side includes as well i'm pretty sure. and coldfusion, but i'm assuming money is an issue here. otherwise, the cf tag goes like this:

    <cfinclude template="yourpage.html">

    but i'm sure php can do the same.

    -b
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    51
    Rep Power
    19
    Well, there are three ways I know of to do this.

    One is frames, obviously.

    Two is to use iframes tags and use src, style, width and height attributes to adjust the contents, position and size of the section, much like the example below:
    <iframe src="menu.htm" width="350" height="400"></iframe>

    Three is php. You can use the following link: Webmonkey Navigation

    Basically it explains how to make a navigation system for the entire website just by replacing the contents that needs to be changed. These contents are just fragments of html and php will put all those fragments together.

    ------------------

    Yanik!
    Edmonton, AB

Similar Threads

  1. HTML frames in flash, etc.
    By anubite in forum Flash Help
    Replies: 1
    Last Post: February 3rd, 2004, 12:15 AM
  2. help removing word HTML from a file
    By martincrumlish in forum PHP Development
    Replies: 3
    Last Post: June 18th, 2003, 07:07 AM
  3. HTML content extractor for XML conversion
    By orionvisuals in forum XML Programming
    Replies: 1
    Last Post: September 12th, 2001, 05:41 AM
  4. including html in a perl script
    By casa3311 in forum Perl Programming
    Replies: 1
    Last Post: September 6th, 2001, 10:24 AM
  5. < ? php $string ? > within html statements?
    By moyashi in forum PHP Development
    Replies: 2
    Last Post: March 26th, 2001, 09:03 PM

IMN logo majestic logo threadwatch logo seochat tools logo