Martha's CIS 52 Lab #2 Number Exercise #3

*****************************************************************************************

Please fill out the following form, using your full name:

First and Last Name    State of Residence (XX):
Email Address:    Birth Date (mm/dd/yy):

INSTRUCTIONS:

Lab #2 Exercise #3. Create a feedback form that accepts a user’s full name in one textbox (indicate a message that the user must enter his/her first name first, then last name), state abbreviation where he/she lives (such as CA, NY, etc.), an email address, and the month, day and year of his/her birthday. Use case conversion functions to capitalize the first letter of each name the user submits. Check that the user’s email address contains the @ symbol and print a warning otherwise. If the user did not input a state abbreviation, assign a default value of “CA.” Generate an error message if user did not input full name, email address or birthday.  List all the values the user inputted splitting the full name into first name and last name in your output. 
 
Example of output:  First name:  John
                                Last name:  Smith
The order how you display the first name and last name in the output depends on the alphabetizing of the first name and last name.  For example, if the full name is Susan Abbitte.  Alphabetically, Abbitte comes before Susan.  So, the output for full name will be:
                                Last name: Last name:  Abbitte
                                Last name: First Name:  Susan
However, if the user enters Betty Magadan, then the output for full name will be:
                                Last name: First name:  Betty
                                Last name: Last name:  Magadan

Other items in the output:
a. A message that tells the user how many days, hours, minutes and seconds until the big day (birthday) from today’s date.
b. The length of user’s first name and the length of user’s last name.
c. Shuffle all the characters in the last name and output the result.
d. Output the last two characters in the lastname.
e. If the user’s first name has a letter e or E, replace that with the letter o or O, respectively. Output the result. Reference: http://www.w3schools.com/PHP/php_ref_string.asp