Lesson 7: php programming, 2

 Signed in as:    
      Sign out



Your home page

Advanced Websites
   Layout and design
   Page framing
   Server Side Includes
   Introduction to CGI
   Introduction to php
   php: 'if', emails
   php: working with files
   Navigation I
   Navigation II
   Processing images

Here we explore a bit more about the php programming language. Topics include:



Note: I strongly suggest you view all our videos in full screen mode: click the icon in the lower right corner of the video area (it shows four arrows pointing to the corners of the screen). When you are done, the Esc ("escape") key returns you to regular mode.


Lesson 07, part 1
More php: comparisons, 'if', and emails

Click here for the video transcript


Hands on exercise

This exercise is focused on coding 'if' statements, sending emails, and accessing the $_SERVER variables.

This exercise builds on your previous cgi, Feedback.php


Session 2
Complex 'if' statements


Here we explore logical operators and nested 'if' statements:



Lesson 07, part 2
Logical operators

Click here for the video transcript.


Hands on exercise

This exercise is primarily focused using complex 'if' statements to construct a correctly formatted street address, based on what data the user has supplied. It is also the beginning of a new php CGI that will expand over the coming lessons.

The Table 'N' Fable club has organized a trip to visit locations in Wales named in the mystery novel "Welsh Rarebit Gone".

Earlier you built a page, 'tripsite.shtml' and now we can build one of the pages linked to from that page, 'signUp.shtml'.

The major pieces to code are:
   signUp.shtml - form for passing information to CGI
   cgis/AddTraveler.php - a new CGI

Here are steps to construct signUp.shtml:

Here are steps to construct AddTraveler.php:



Supplemental materials

    A cumulative summary of the contents of this course so far: Click here
    For a combined cumulative summary of both Web courses so far, Click here



 Lesson navigation 



Email us if you would like additional information. We would love to see your comments and recommendations for our site.