logo © 1996 Phil Waclawski
Felitaur Site
Offerings
About Me
Crafts
Services
ftp files
Help Files
What's New?
Home Page
Other Links
Anatomy &
Physiology
Arthropods
Biology
Computers
Ferrets
Fun Links
Internet
Linux
S.C.A.
Win 95/NT
Comments or
Suggestions
webmaster@ felitaur.com
   
[Webscripting Homepage] | [Javascript Homepage] | [Perl/CGI HomePage] | [PHP Homepage]
PHP Program Assignment 3
For your second programming assignment, you will create one file. prog3.php
  • You will have this program create a simple form that uses the following fields:
    • Users full name (in one text box)
      Must allow 3-4 names, handle initials, prefixes (mr. mrs. ms. dr.) and things like Jr. and III
    • A password box
      range of 8-12 characters must be allowed (no less than 8, no more than 12) and allow the following characters a-zA-Z0-9!@#$%^&*
    • An email address in a text box
    • A text area field
  • You will use preg_match to validate the name, password and email fields
  • use strip_tags(), preg_replace() and similar functions to clean up the text area field
  • Print out the "cleaned" results on a result page, and try to format the text area field to preserve their line breaks
  • Print the date at the bottom of the page in the format Monday, January 23, 2005

This page last updated on: