Home » 2008 » November

Monthly Archives: November 2008

How to Create a Consistent Web Site with PHP, Using PHP to Display and Format Web Pages

by: Mark Alexander Bain

One of the most important parts of building any web site is ensuring that all the web pages that it contains have a consistent look and feel. For example each page may require:

  • the same header to be displayed
  • the same footer to be displayed
  • sames links to be displayed down the side of the page.

This can, of course, be done by editing the HTML in each page (which is time consuming) or by using frames (which is not particularly popular). However, it can be also achieved by using just a few lines of PHP code. (more…)

PHP and Forms, How to Post Data to a PHP Script and Work with Variables

by: Mark Alexander Bain

PHP (Personal Home Page or PHP: Hypertext Preprocessor) has been around since 1994 and forms the heart of many web sites – and with good reason; if nothing else then the way in which PHP handles any variables passed to it from other web pages makes it well worth using. (more…)