Program cgs4854pgm3_6a
Worth 5 points

CGS 4854 - Website Construction and Management
Professor: Michael Robinson 

 server    = ocelot.aul.fiu.edu
 usernames = sum16_username
 password  = panther ID

- Make sure the program is properly documented and aligned uniformally, looking professionally,
- Include the following header in every page:


  <%-- ***********************************************************************************
  Author     : Your Name 
  Your URL   : ocelot-aul.fiu/~__________
  Course     : CGS 4854 session, date, and time
  Program #  : Assignment Purpose/Description 
               {A brief description of the program } 

  Due Date   : MM/DD/YYYY 
  Certification: 
  I hereby certify that this work is my own and none of it is the work of any other person. 

  ..........{ your signature }..........

  ************************************************************************************** %>

Purpose of this program:

- To your main CSS menu add a new link called PGM3. Make sure to leave previous buttons and its
  contents as they were turned in for program 2.

- All the material for program 3 is new material, we are just extending the knowlegde from 
  program 2.


                               Your Company Name (display area #1)

                  *********************** new main css menu **********************   
  
                  Telephone #     _____________ 
                  First Name      _____________  
                  Last Name       _____________    
                  Email           _____________
                                    
                  Gender          _____________[^]   

                  Age             o Under 20    o 20-30    o 31-40
                                  o 41-50       o 51-60    o Above 60     
                  
                  Preferences     []CS   []IT   []Robotics   []Engineering

                                  ___________________________________   
                  Special Needs  | Non-Smoking area                  |
                                 | Sugar-Free diet                   |
                                 | Large letter monitor              |
                                 -------------------------------------


                              ______Submit Comment Display area #2______
  
  
                             FIND   SAVE   MODIFY   DELETE   CLEAR   HELP
                         

                  *********************** new main css menu **********************   



Details:
Implement all the buttons ( FIND   SAVE   CLEAR ) as follows:

- FIND. To find a record in your mysql table, enter the primary key on pgm3.php 
    and press the FIND button, then pass the primary key value, using POST, to 
    find.php using the Controller3.php.
    If the record is found in the table, display all the corresponding fields on 
    the screen (pgm3.php) and on the Submit Comment Display area #2, using blue color, 
    display "RECORD yourPrimaryKey FOUND".  LEAVING all the data on the screen
  else on the Submit Comment Display area #2, using red color, 
    display "RECORD yourPrimaryKey NOT FOUND".  LEAVING all the data on the screen. 
  
- SAVE. If the record is not FOUND in the table, enter all the customer information
  on the pgm3.php page and press SAVE. The SAVE button, using the Controller3.php, 
  will call save.php to add into the table all the data entered in pgm3.php,
  using POST. If the record does not exist in the table, on the Submit Comment 
  Display area #2, display "Record yourPrimaryKey Added" using blue color.
  If the record already exist in the table, DO NOT ACCEPT THE DATA, and display
  "RECORD yourPrimaryKey ALREADY EXISTS" on the Submit Comment Display area #2, 
  using RED color, LEAVING all the data on the screen. 
  
- CLEAR. This button will set all memory values to "" and then when they get 
  re-displayed on the pgm3.php page, the screen will be cleared as well.



Special Instructions:
- Additional code samples: 
  http://users.cis.fiu.edu/~mrobi002/databases/cgs4854/ 
  http://users.cis.fiu.edu/~mrobi002/includes/OcelotCreatingWebsite    
  http://users.cis.fiu.edu/~mrobi002/includes/Web.php



Print the corresponding php pages to this program ONLY 
and turn them in at the begining of class.

Upload to moodle a zipped copy of your public_html folder RENAMING it by adding your
name and class number (WEB 1, 2, 3 or 4)