Welcome to the Harry's Auto Center

No service request submitted


<?php     //PHPSESSID
   session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Register Services in Database</title>
</head>
<body>
<body>
<h2>Welcome to the Harry's Auto Center</h2>

<?php 
// set the error reporting level for this script
error_reporting(E_ALL);

if (isset($_SESSION['username'])){  // there is an open session: acknowledge and close session
print "Welcome back <b>$_SESSION[username]</b> from <b> $_SESSION[location]!</b><br>
You have the following services registered in our database:<ol>";
 $services= $_SESSION['services'];
 foreach($services as $value){
     print "<li>$value</li>";
 }
print "</ol> <b>Good Bye!  This session is being closed!</b>";
session_destroy();
}else 
     print "<h4>No service request submitted</h4>";
//
print "<hr>"; show_source("regform.php");
print "</body></html>";
?>