Domain Discussion Board

Go Back   Domain Discussion Board > General > Tutorials

 
Reply
 
LinkBack Thread Tools Display Modes
Displaying an external page inside a table
Old
  (#1 (permalink))
bbalegere
 
Status:
Posts: n/a
Points: 0
Bank: 0
Total Points: 0
Donate
Displaying an external page inside a table - 09-21-2006, 05:33 AM

This tutorial will show you how to display a web page (html, php, asp, whatever) inside a table of a seperate page. Many web-designers use this, as a main page can be made up of many different pages per 'section' of the website. This makes for simple editing of each section. The best way to utilise this is to design all of your tables and layout in the index page, and the external pages can simply be the pure content, ready to be edited in a few seconds. No more scrambling through code to find your text.
Lets make a small website for our example.

Open a new file in textedit, notepad, dreamweaver, whatever you use.

Create a table

Quote:
<table width="130" border="1" cellspacing="0" cellpadding="5">
<tr>
<td></td>
</tr>
</table>
Now open a new file in your program. Type your words. (you may use css/html formatting if you wish) andsave it as a web page (php, htm, ect ect). For this example we will call it 'content.html'

Now lets go back to the original page, and enter the code to display content.html inside out table.

Quote:
<?PHP
include("content.html");
?>

So our file will now be

<table width="130" border="1" cellspacing="0" cellpadding="5">
<tr>
<td>

<?PHP
include("content.html");
?>

</td>
</tr>
</table>
Save this as a .php file.

Upload it to your webserver that has php installed, and view the file. You will see the contents of content.html inside your php file!
Imagine your site is made up of lots and lots of features. You ahve included many different files for your different sections. To edit one particular section, all you have to do it find that file and edit. Simple

Source:http://www.beginnerwebmaster.com/bw-...ide-a-website/

Last edited by mtorregiani : 09-21-2006 at 06:17 AM.
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.0
Points Per Thread: 15.0
Points Per Reply: 5.0


Similar Threads
Thread Thread Starter Forum Replies Last Post
Website and Application Content Databases Guest Other Marketing Techniques 4 06-06-2007 05:44 AM
Popup Traffic Veesh Other Marketing Techniques 12 09-08-2006 11:14 PM


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.