Writing a straightforward but meaningful executable web page in PHP. You'll learn how to read data from the user via a form, how to perform calculations using operators, and store the results in computer memory using variables. You'll also learn how to include those results in your response page.
This topic is presented on public course
PHP Programming
Examples from our training material
| header.txt | File to be included in master example ?> |
| k1.php4 | A calculation in PHP |
| k2.php4 | A calculation with variables |
| k3.php4 | Getting a variable from a form - OLD style |
| k3a.php4 | Getting a form variable - new and more secure style |
| k4.php | Example of comment types |
| master.php4 | PHP page that calls in an include file ?> |
| result | Master and header code merged |
| simsan.php | Simple sanitisation and sticky field example |
Pictures
We ran a PHP course for Pepperdine University
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Expressions and operators.
Variables.
Getting a value from a form.
Alternative ways of getting values from a form.
Comments in PHP.
Including a file.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.