<?php

// We have to start our session every time we're
// going to call our session variable for a
// logged in issue.
session_start();

// Let's also make sure the user is logged in at all
// If the PHP $_SESSION[] array is not (!) set
if(!isset($_SESSION['username'])){
    //Then redirect them to the login page
    header( 'Location: index.html' );
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Digital Banking - Login step 1</title>
<style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:1;
	left: 23px;
	top: 19px;
}
.bold {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #036;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#apDiv2 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:2;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>
</head>

<body>
<p class="bmhead">Welcome to bank manager</p>
<p>&nbsp;</p>
<p><a href="vd.php" target="_blank"><strong>View Database </strong></a>~ <a href="credit.php"><strong>Credit Account</strong></a> ~ <a href="update.php"><strong>Update Customer Account</strong></a> ~ <a href="delete.php"><strong>Delete Account</strong></a> ~ <a href="logout.php"><strong>Logout</strong></a> </p>
<p><strong><a href="index.php">Home</a></strong></p>
<p><strong>=====================================================================</strong></p>
<p><strong>Delete Account </strong></p>
<form id="form1" name="form1" method="post" action="del.php">
  <label>&nbsp; Customer Account Number:&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="customernum" type="text" id="customernum" />
  </label>
  <p><label></label>
    <label></label>
    <label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" name="Submit" value="Delete Account" />
    </label>
  </p>
  <p>&nbsp; </p>
</form>
<p>&nbsp;</p>
</body>
</html>
