Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-09-2005, 05:25 PM   #1
Solid State Member
 
Join Date: Aug 2005
Posts: 20
Default php includes

I'm new to php and I dont know how to link using php. I have links as image hotspots on a template and have a space for the body area. I've herd that you can link using php includes or something and it can change the page like an iframe with out actually using an iframe. How would I code something like this?
__________________

zonogon is offline   Reply With Quote
Old 12-11-2005, 10:57 PM   #2
Beta Member
 
Join Date: Dec 2005
Posts: 1
Default Re: php includes

Don't post random links to your own websites, especially when they make little to no sense to the questions being asked.
__________________

prasad is offline   Reply With Quote
Old 12-12-2005, 10:20 PM   #3
Solid State Member
 
Join Date: Aug 2005
Posts: 20
Default Re: php includes

um? ok?
zonogon is offline   Reply With Quote
Old 12-14-2005, 09:54 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: php includes

do you now that I could have swore that I'd answered this question, but i must have closed the rowser before actually submitting what I wrote!!

Anyway...
I think this is what you are asking for...


there are two ways to include information from other files, either use include, or require

eg,
Code:
<?php

print "<head><title>test</title></head>
<body>";
include ('menu.html');
print "page content
</body>";
?>
That code will work and draw a page, that has both the content of that page (page content) and the contents of a menu page (manu.html0 displayed in the browser...

if the server can't find the menu page then it will just ignore it an carry on processing the page.

[code]
Code:
<?php

print "<head><title>test</title></head>
<body>";
require ('menu.html');
print "page content
</body>";
?>
Same thing with relation to drawing the page, with the exception that if t can't find the document (menu.html). it will error and not continue with the page.


did that answer your question?
__________________
I didnít fight my way to the top of the food chain to be a vegetarianÖ
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-19-2006, 01:22 AM   #5
Beta Member
 
punjabi_munda's Avatar
 
Join Date: Jan 2006
Posts: 4
Default Re: php includes

i am new in php i canot make the form in php
plz help to make the form in php
punjabi_munda is offline   Reply With Quote
Old 01-19-2006, 06:26 AM   #6
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: php includes

what exactly do you mean make a form in PHP, do you mean a form like a regular HTML form?
__________________

__________________
I didnít fight my way to the top of the food chain to be a vegetarianÖ
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0