Monitor

Lesson 8: String handling, date / time, and CGI validation

 Signed in as:    
      Sign out

 

Links

Your home page

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

Our first look at string handling in php, and some date / time functions. 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 8: string handling
Part 1: strings and date / time

Click here for the video transcript

 

Hands on exercise

This exercise is primarily focused on creating file names and constructing date / time strings

We'll start by declaring variables "$today" and "$now", using the format patterns of your choice, then setting up instructions to format first name and last name to have the structure discussed in lecture, ending up with the notification page to the user reflecting the date and time of the sign up request and echoing the generated user filename.

 

Session 2

A look at how to validate data in your php CGI code. Topics include:

 

 


Lesson 8: string handling
Part 2: php data checking

Click here for the video transcript.

 

Hands on exercise

This exercise focuses on adding data checking to your CGI, using the techniques discussed in the video.

All the work for this lab centers on your cgi "AddTravelers.php" ...

 

Supplemental materials

    A cumulative summary of the contents of the course so far: Click here for the cumulative technical summary
    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.