Tier I
PHP Examples

 

Some Background on PHP Configuration Test Page  
Some Simple Formatting Hello World  
Escape Characters to Display Special Characters Escape Characters  
 
Working with Forms
Get Some Info A Simple Form
All Form Input Controls Dealing With All Form Input Controls
A Form with Numeric Inputs Simple Computations
 
Some Built In Functions
Formatted Computations Formatting the Previous Example
Using Some Builtin Functions Builtin Number Functions  
Using Some String Functions Manipulating Your Name  
Using Some Date/Time Functions Parsing Dates/Times  
 
Decisions and Branching
Good Morning? Responding to the Hour
More Good Morning? Better Structuring of the Solution
Good Morning Exactly? Improving Accuracy
When Is It Exactly? Morning, Afternoon, Evening, Night
Convert Fahrenheit to Celsius Posting to the Same Form
Checking for Blanks Some Input Validation for a Form
 
Looping
Using a For Loop Summing the First N Integers
Using a While Loop Another Summing the First N Integers
 
HTTP Headers
Source File, Address and Browser Some Header Variables
Login Form Page Redirection Based on a Password
 
Arrays
Using an Array to Display Scores and Find Their Average Find the Average
Using an Array to Find a URL Find the URL
 
User Defined Functions
Converting Fahrenheit Converting Fahrenheit to Celsius in a User Defined Function
Converting Fahrenheit Converting Fahrenheit to Celsius in a User Defined Function that Returns a Result
Calculate Costs Reworking Total Cost Using a Function
 
Sticky Forms
Processing Form Data in the Same Page Where the Form is Located PHP Redux
Processing Sticky Form Data in the Same Page Where the Form is Located A Sticky Form
A Sticky Form Using All the Form Controls A Sticky All Form
 
Cookies
Setting Cookies Using an Earlier Form to Create Cookies
Display Cookies Displaying These Cookies in a Form
 
Session Variables
A Series of Pages to Illustrate Posted, Local and Session Variables Page Series
Setting the Time at the Session Start to a Session Variable - Compare it to the Current Time Current Time
An Implementation of Login Security Attempt to Bypass
Login Form
 
Working with MySQl Databases
Creating a Table Using a MySQL Query to Create a Table
Insert Some Data Using a MySQL Query to Insert Data from a Form into a Table
Display Table Entries Using a MySQL Query to Retrieve Data from a Form and Display it in a Table
Delete a User Using a MySQL Query to Delete a Record from a Table