This is the full code
<?php
require_once('auth.php');
?>
<!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>
<title>Chemistry labs</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.2.1.pack.js" type="text/javascript"></script>
<script src="js/jquery-easing.1.2.pack.js" type="text/javascript"></script>
<script src="js/jquery-easing-compatibility.1.2.pack.js" type="text/javascript"></script>
<script src="js/coda-slider.1.1.1.pack.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(window).bind("load", function () {
jQuery("div#slider1").codaSlider()
});
</script>
<!--<script type="text/javascript">
function validateForm(){
with (document.adduserForm)
{
if(login.value == "") {
alert("Error: login cannot be blank!");
login.focus();
return false;
}
if(login.value.length < 4) {
alert("Error:Login must contain at least four characters!");
login.focus();
return false;
}
re = /^\w+$/;
if(!re.test(login.value)) {
alert("Error: login must contain only letters, numbers and underscores!");
login.focus();
return false;
}
if(password.value == "" ) {
alert("Error: Password field cannot be blank !");
password.focus();
return false;
}
if(password.value.length < 4) {
alert("Error: Password must contain at least four characters!");
password.focus();
return false;
}
if(!re.test(password.value)) {
alert("Error: Password must contain only letters, numbers and underscores!");
password.focus();
return false;
}
else
// alert("You have added a new user : " + login.value);
return true;
}}
</script>
-->
</head>
<body>
<div id="site_title_bar_wrapper">
<div id="site_title_bar">
<div id="site_title">
<h1><a href="#">Chemistry Labs Inventory Control System<span></span> </a></h1>
</div>
</div>
<!-- end of site_title_bar -->
</div>
<!-- end of site_title_bar_wrapper -->
<div id="content_wrapper">
<div id="content">
<!-- start of slider -->
<div class="slider-wrap">
<div id="slider1" class="csw">
<div class="panelContainer">
<div class="panel" title="Edit User">
<div class="wrapper">
<div align="right"> you are logged as <?php echo $_SESSION['SESS_LOGIN'];?> | <a href="member-index.php" >Home </a>| <a href="logout.php">Logout </a> </div>
<h2>Edit User Form </h2>
<p class="em_text">This is a password protected area only accessible to Administrators. Fill all fields inorder to edit user.</p>
<div class="cleaner_h30"></div>
<form ACTION="edit_user_save.php" name="edituserForm" id="edituserForm" METHOD="POST" align="center" onsubmit="return validateForm()" >
<input type="hidden" name="id" value="<?php echo $_GET['id'] ?>" />
<div align="center"><center>
<table width="436" id="table">
<tr>
<td width="214">Username</td>
<td width="254"><input name="login" maxlength="10" id="login" value="<?php echo $login;?>"/></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" id="password" name="password" maxlength="10" value="*******"/></td>
</tr>
<tr>
<td>email</td>
<td><input type="text" id="email" name="email" maxlength="50" value="<?php echo $email;?>"/></td>
</tr>
<tr>
<td>Select user type </td>
<td><select name="type" id="type">
<option value="admin"> Admin </option>
<option value="labassistant"> Lab Assistant </option>
<option value="storekeeper"> Store Keeper </option>
</select></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="button" id="button" value="Edit user"/></td>
</tr>
</table>
</center></div>
</form>
</div>
</div>
</div>
</div>
<!-- .panelContainer -->
</div>
<!-- #slider1 -->
</div>
<!-- .slider-wrap -->
<!-- end of slider -->
</div>
<!-- end of content -->
</div>
<!-- end of content_wrapper -->
<div id="footer_wrapper">
<div id="footer"> Copyright © Designed by <a href="#">Kasun</a></div>
<!-- end of footer -->
</div>
<!-- end of footer_wrapper -->
</body>
</html>
I just wanna show them in the form and then admin can easily erase them and edit them as he wants.