Iain Tench has worked in the IT industry for 30 years as a programmer, project manager (Prince2 Practitioner), consultant, and teacher. As a project manager, he specialized in integration projects mainly involving payment systems in the financial sector. He now teaches and has acquired a Masters degree in Internet Systems Development as well as a teaching qualification. Iain's specialized areas of teaching is web technologies, mainly programming in a variety of languages, HTML, CSS and database integration. He's also written a book about Dreamweaver CS3 for Hodder Education.

Iain's articles

  1. Working with Files in PHP

    You’re probably familiar with databases such as MySQL and Access, but data can also be stored in files. This article gives you an introduction into working with text and CSV files as well as find out information about the files (such as permissions and the last time it was modified).

  2. Form Validation with PHP

    Forms are the cornerstone of an interactive website. In this article you’ll construct and validate a simple form using HTML and PHP. You’ll learn some basic HTML form elements and how their data is accessible in your PHP scripts.

  3. PHPMaster: Learning Loops

    A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. Loops come in several different flavors in PHP: for , while , do-while , and foreach .

  4. PHPMaster: Learning Loops

    A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. Loops come in several different flavors in PHP: for , while , do-while , and foreach . I’ll introduce you to each of them and show you how they can making repetitive tasks straightforward and easy to maintain

  5. Learning Loops

    A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. This tutorial will teach you about the different loop types available in PHP.

  6. PHPMaster: Defining and Using Functions in PHP

    Let’s start by defining the word “function.” A function is a self-contained piece of code which carries out a particular task (or function!). A key benefit of using functions is that they are reusable; if you have a task that needs to be performed a number of times, a function is an ideal solution. They can be either defined by you or by PHP (PHP has a rich collection of built-in functions). This article will focus on programmer-defined functions but will touch briefly on PHP’s functions to complete the picture

  7. Defining and Using Functions in PHP

    A function is a self-contained piece of code which carries out a particular task (or function!). A key benefit of using functions is that they are reusable; if you have a task that needs to be performed a number of times, a function is an ideal solution. This tutorial will teach you how to define and use your own functions in PHP.

  8. PHPMaster: Variables in PHP

    A variable is used in PHP scripts to represent a value. As the name variable suggests, the value of a variable can change (or vary) throughout the program. Variables are one of the features that distinguish a programming language like PHP from markup languages such as HTML. Variables allow you write your code in a generic manner

  9. PHP Variables

    Variables are one of the key features that distinguish a programming language like PHP from markup languages such as HTML. They allow you to write code to handle input values. Read this post about variables and learn how to declare them, assign values to them, and output their values.