Website help

Miscellaneous Forums/General Discussion/Website help

How do you create a website with html and PHP that has the buttons and the company logo at the top of the site no matter what page you are on (e.g. this website).

I'm going to assume that you know HTML here...

First, W3Schools.com gives an excellent overview of PHP:
http://www.w3schools.com/php/default.asp

Their tutorial doesn't go very deep into the whole thing, but it definietly relieves initial fears of the language.

www.php.net , which is the official web site for PHP, is a wonderful resource to learn other stuff. Most of PHP's power is in it's ginormous library of functions, so it's pretty easy once you get the basics figured out.

Unfortunately, I can't really help you on the php.net end of things, because I completely forgot about ever learning the language. One day I just thought "OK, I'm going to write PHP" and I somehow knew the language off the top of my head from reading a few tutorials many months previously, which I have never found since... which is perhaps an example of how fantastically easy the language is.

Some useful concepts to also learn are HTML forms sending data to PHP, variables in the address bar (seen here) and if you're really adventurous: MySQL.

thanks, I learnt HTML and had a quick look at PHP but I just wondered how the button thingy was done before I went and spent several hours trying to do it the wrong way myself.

I would suggest a server side include (SSI) of the 'header' code (on each new page) and use css positioning of layers so that (a) it is always in the same place and (b) the body always starts on a layer positioned below it...

thanks that gives me an idea of how to approach the problem

Been wondering how abouts to approach the same situation myself, but without means of using server-side coding.

Is there by anychance a code equilevent of the HTML tag <iframe> for CSS, or means of doing the same thing? Been working on my site at highschool, and we dont got PHP and the sorts installted & working unfortunately.
(Least with CSS the menu itself in the page code is very compact, unlike my previous attempts where I only used HTML...)

found out that it is just ONE LINE of php code:

<?php include 'Header.php'; ?>

dont know about CSS unfortunately sorry

As Noel Cower would say:
'PHP is GOD'

I am not sure exactly what you want but check out www.dynamicdrive.com it has some neat dhtml and javascript crap that is sometimes useful