Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start ();
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <!-- Web Programming CST8238 Lab 8 - Programming Arrays, Objects - Array #1 -->
- <!-- Author: Sam Mueller -->
- <html>
- <head>
- <title>Session #2</title>
- <link rel="stylesheet" type="text/css" href="StyleSheet.css">
- </head>
- <body>
- <?php
- echo "<div id='wrapper'>";
- include_once 'Header.php';
- include_once 'Footer.php';
- include_once 'Menu.php';
- echo "<div id='content' style= 'color: white; text-align: left;'>";
- if (isset ( $_SESSION ["firstName"] )) {
- echo "Your first name is " . $_SESSION ["firstName"];
- }
- if (isset ( $_SESSION ["lastName"] )) {
- echo "Your last name is " . $_SESSION ["lastName"];
- }
- if (isset ( $_SESSION ["telephoneNumber"] )) {
- echo "Your phone number is " . $_SESSION ["telephoneNumber"];
- }
- if (isset ( $_SESSION ["group1"] )) {
- echo "Your status is " . $_SESSION ["group1"];
- }
- if (isset ( $_SESSION ["game"] )) {
- echo "Your favorite game is " . $_SESSION ["game"];
- }
- echo <<<_END
- <table style='width:auto; height:50%; margin:0 0 0 auto; display: inline-block'>
- <tr>
- <td>
- <div style= 'color: white; text-align: left'>
- <center><u>Submitted Information</u></center>
- <br><br>
- First Name: $firstName<br>
- Last Name: $lastName<br>
- Telephone Number: $telephoneNumber<br>
- Position: $group1<br>
- Favorite Game: $game
- <br><br><br><br><br>
- </td>
- </tr>
- </table>
- </div>
- </div>
- _END;
- echo "</div>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement