Advertisement
Dakpluto

controller2.php

Jun 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!-- ***************************************************************************************
  3.   Author     : Michael Harrison
  4.   Course     : WEB-Online
  5.   URL        : ocelot.aul.fiu.edu/~mharr142
  6.   Professor  : Michael Robinson
  7.   Program #  : Assignment Two
  8.                CSS/PHP Forms
  9.  
  10.   Due Date   : 06/15/2019
  11.   Certification:
  12.   I hereby certify that this work is my own and none of it is the work of any other person.
  13.  
  14.   ..........{ Michael Harrison Jr. }..........
  15.  
  16. **************************************************************************************** -->
  17. <html>
  18. <head>
  19.     <title>Harrison, M - Controller2.php</title>
  20. </head>
  21. <body>
  22. <?php
  23.     $primaryKey = $_POST['primaryKey'];
  24.     $lastName = $_POST['lastName'];
  25.     $firstName = $_POST['firstName'];
  26.     $zipCode = $_POST['zipCode'];
  27.     $comments = $_POST['comments'];
  28.     $it = $_POST['it'];
  29.     $cs = $_POST['cs'];
  30.     $robotics = $_POST['robotics'];
  31.     $law = $_POST['law'];
  32.     $cyber = $_POST['cyber'];
  33.     $light = $_POST['light'];
  34.     $cuban = $_POST['cuban'];
  35.     $sweet = $_POST['sweet'];
  36.     $dark = $_POST['dark'];
  37.     $decaf = $_POST['decaf'];
  38.     $dropdown = $_POST['dropdown'];
  39.  
  40.     echo "<strong>Sent from program2.php</strong><br>";
  41.     echo "<strong>This is controller2.php</strong><br>";
  42.     echo "Primary Key: " . $primaryKey . "<br>";
  43.     echo "Last Name: " . $lastName . "<br>";
  44.     echo "First Name: " . $firstName . "<br>";
  45.     echo "Zip Code: " . $zipCode . "<br>";
  46.     echo "Comments: " . $comments . "<br>";
  47.     echo "<strong>Major</strong><br>";
  48.     echo "IT: " . $it . "<br>";
  49.     echo "CS: " . $cs . "<br>";
  50.     echo "Robotics: " . $robotics . "<br>";
  51.     echo "Law: " . $law . "<br>";
  52.     echo "Cyber: " . $cyber . "<br>";
  53.     echo "<strong>Coffee</strong><br>";
  54.     echo "Light: " . $light . "<br>";
  55.     echo "Cuban: " . $cuban . "<br>";
  56.     echo "Sweet: " . $sweet . "<br>";
  57.     echo "Dark: " . $dark . "<br>";
  58.     echo "Decaf: " . $decaf . "<br>";
  59.     echo "Dropdown: " . $dropdown . "<br>";
  60.  
  61.     echo "<br><strong>Button</strong><br>";
  62.     if ($_POST['save']) {
  63.         echo "Save button pressed";
  64.     } else if ($_POST['find']) {
  65.         echo "Find button pressed";
  66.     } else if ($_POST['modify']) {
  67.         echo "Modify button pressed";
  68.     } else if ($_POST['delete']) {
  69.         echo "Delete button pressed";
  70.     } else {
  71.         echo "Unknown Input";
  72.     }
  73. ?>
  74.  
  75. </body>
  76. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement