logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 10-28-2012, 04:47 AM   #1
fourty711
 
Join Date: Oct 2012
Posts: 1
Exclamation HOW to use PHP include

Hi! I need to place several webpages by clicking link buttons into the same DIV container on my HOME page and keep the home page visible all the time. I have looked up several ( include ) codes in php and also in Jquery but no one places webpages into the site they only show changing colours or letter formats etc.
Please if you have a way to get the above information completed for my website it would help to fiinsh off what I am trying to do.
Thanks for any help.
Here is my email: fourty711@hotmail.co.uk
fourty711 is offline   Reply With Quote
Old 10-29-2012, 01:54 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Hi Fourty, that's not how it works. You don't place web pages inside web pages.
Do you have a wireframe or a design mockup?
domedia is offline   Reply With Quote
Old 11-12-2012, 07:47 AM   #3
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default

he's right. let me explain what he is saying. HTML has a specific near-boilerpolate top which looks basically like
Code:
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>some title here</title>
head tags here
</head>
<body>
body content here
</body>
</html>
between
Code:
<body></body>
is where you insert your content tags. what is NOT allowed in head is tags like html and what is not allowed in body is tags like html, body, head, title, meta, base, link. it's for this reason you should look at the standards document
whatwg multipage HTML5 Standard
or a decently-written HTML book which tells you this kind of stuff to see what elements are allowed inside what other elements (shown as categorized "Content:" in the standard. there are lists of those things. I also have a summary document at http://Jesusnjim.com/common/html5-tags.txt which is regex-searchable.
a very helpful (but old) book is the "Hip Pocket Guide to HTML 4.0/4.01/3.2" (pick one, it's available at a bookstore used near you or amazon.com). this will get you started in the right direction.

the usual way to include webpages within web pages is using an iframe or frame, and those are not search-engine friendly. but there are other ways using PHP.
__________________
------------
Jim Michaels
HTML Code:
improperly<strong>nested<em>elements</strong>cause</em>
browser confusion (I believe the term is 'tag soup')!
jmichae3 is offline   Reply With Quote
Old 11-12-2012, 07:52 AM   #4
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default

just put the header and footer in PHP and switch out content files using file_get_contents() and echo.
__________________
------------
Jim Michaels
HTML Code:
improperly<strong>nested<em>elements</strong>cause</em>
browser confusion (I believe the term is 'tag soup')!
jmichae3 is offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com