INTRODUCTION
LESSONS
MORE PHP
|
PHP on Web Pages
This tutorial assumes you have some knowledge of HTML coding including
simple text formatting, tables and forms. You should also have some familiarity
with PHP. For example you might have worked through this
tutorial.
Setting up your server - This entire
tutorial can be downloaded for use on
your local PHP enabled web server.
Lesson |
Example |
Homework |
One |
Hello World! |
- Write your own version of the "Hello World!" program.
It should display several pieces of text and should include formatting
tags such as headings and paragraphs.
|
Two |
Text I/O |
- Make a form with text input fields where you can enter a full
name and address. When you submit the form, the name and address
should be displayed.
|
Three |
Arithmetic |
- Upgrade the calculator example to multiply and divide. Make
sure it traps the divide by zero error.
|
Four |
Date and Time |
- Create a web page that greets you with "Good Morning",
"Good Afternoon" Etc. depending on the time of day.
|
Five |
Graphics |
- Create your own simple graphic.
|
Six |
Pie Chart |
- Create an interactive bar chart.
|
Seven |
Array & Records |
- Upgrade this example to manage a phone number in addition to
the name and date fields.
|
Eight |
Delete Record |
- For high fliers only: Upgrade this example to delete many records
in one step. Use checkboxes instead of radio buttons.
|
Nine |
Shopping |
- Add two more products to the example shop.
|
|