logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Web Design
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 05-28-2009, 04:59 AM   #1
indianleo
 
Join Date: Sep 2006
Posts: 343
Default Please help me Its urgent!!! Problem in including file

Hello Friends, how r u all?

I am creating one website in that there is one navigation and footer which I want to be same in all pages so I had created one navigation.html and one footer.html

now I want to create one file where I want to include navigation html and footer html and in middle i want get all other pages content so how should I do this

Even I am getting problem in including html when I uses the below code it dont show me anything in preview in browser

<?php include("filename.html"); ?>


pls help me
indianleo is offline   Reply With Quote
Old 05-28-2009, 05:12 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

are your pages php?
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 05-28-2009, 05:20 AM   #3
indianleo
 
Join Date: Sep 2006
Posts: 343
Default

yes its php
indianleo is offline   Reply With Quote
Old 05-28-2009, 05:30 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

<?php include('navigation.html'); ?><?php include('footer.html'); ?>


try those
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 05-28-2009, 06:11 AM   #5
indianleo
 
Join Date: Sep 2006
Posts: 343
Default

Thanks a lot
got it but how to change the content now
indianleo is offline   Reply With Quote
Old 05-28-2009, 06:14 AM   #6
indianleo
 
Join Date: Sep 2006
Posts: 343
Default

and what will be the script in menu file to change the respective content
indianleo is offline   Reply With Quote
Old 05-28-2009, 07:06 AM   #7
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

dont understand your question
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 05-28-2009, 07:19 AM   #8
indianleo
 
Join Date: Sep 2006
Posts: 343
Default

oh! sorry


<script type="text/javascript">
function changeContent(pPage){
document.getElementById("content").src=pPage;}
</script>

<div id="maindiv">
<div><?php include_once("menu.php"); ?></div>
<iframe id="content" width="960px;" height="auto" scrolling="auto" frameborder="0" border="0"></iframe>
</div>
<?php include_once("footer.php"); ?>


ok this is my code in index file now I want by default home page shoudl display in iframe
indianleo is offline   Reply With Quote
Old 05-28-2009, 06:46 PM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

im lost too
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 05-28-2009, 08:15 PM   #10
coloeagle
coloeagle's Avatar
 
Join Date: Sep 2008
Location: Colorado, USA
Posts: 596
Default

Quote:
Originally Posted by indianleo View Post
I want by default home page shoudl display in iframe
Don't know why you want an iframe setup for your pages to be displayed. Would be best to have separate pages. But if you need to have them displayed inside the iframe review this thread. http://www.dreamweaverclub.com/forum...ad.php?t=29359
__________________
The Beauty of CSS (One of my hobbies)
Home Security (My real Job)
Multiple Link Styles with CSS
coloeagle 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 04:20 AM.


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