![]() |
|
#1
|
|||
|
|||
Need help adding a footerHi List, please forgive this newbie question but I am new to web development with PHP. heck i am new to web development with html. anyway i got seme help here and was hoping i could get some more pasted below are the last few lines of my webpage and I need to know what i need to do to insert a footer. if anybody can help i would appreciat eit.
HTML Code:
thanks Last edited by dsmith : 09-Feb-2004 at 21:50.
Reason: Added html syntax highlighting
|
|
#2
|
||||
|
||||
How to include a file with PHPDemtro, you just need to create another html/inc/php file, then add a single line in your existing page to have it include the HTML bit of the include files.
Here's a simple example; let's say you want this bit of HTML or php code to be your footer, copy and paste the code into a file (you can name it anything), let's assume it's saved as inc_footer.php PHP Code:
Now... to include this 'page' in your homepage or any other web page in your WWW root folder, you just include it using the include_once() or require_once(); Taking your example above: PHP Code:
FYI, incl_footer.php could have also been named inc_footer.inc, inc_footer.txt or even simply inc_footer.html. However, if you have the include file saved in your WWW root folder, it's wise to save it with the .php extension. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Thank you very much I appreciate the help.
Quote:
|
Recent GIDBlog
Toyota - 2008 August Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding another section to the site | BobbyDouglas | Learning Journal by J de Silva | 4 | 08-Nov-2003 12:55 |
| Customised title for adding to favourites | jrobbio | Web Design Forum | 0 | 16-May-2003 10:23 |
| Trouble adding RAM | JBrewMan1 | Computer Hardware Forum | 13 | 29-Apr-2003 20:32 |
| Adding RAM | Guest | Computer Hardware Forum | 2 | 23-Jun-2002 16:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The