I'm working on making a user maintenance system for my class, I have created the add/delete user portion but as for the edit portion I am completely stumped. So far I have created the form but what I want to do is be able to hit find user and then refresh the page with the user chosen to update then change the information and hit save user, since there are many users that can be updated. So far this is what I have for my table.
<html>
<head>
<link href="../styles/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1 class="green" align="center"> Enter the information of the user you would like to add</h1>
<form name="addform" action="edituser_exec.php" method="post">
<table width="309" border="0" align="center" cellpadding="2" cellspacing="5">
<tr>
<td colspan="2">
<!--the code bellow is used to display the message of the input validation-->
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?>
</td>
</tr>
<tr>
<td width="200"><div align="right" class="arial" >Member ID</div></td>
<td width="177"><input class="input" name="memID" type="text" /></td>
</tr>
<tr>
<td width="116"><div align="right" class="arial">First Name</div></td>
<td width="177"><input class="input" name="first" type="text" /></td>
</tr>
<tr>
<td><div align="right" class="arial">Middle Initial</div></td>
<td><input name="minit" class="input" type="text" /></td>
</tr>
<tr>
<td><div align="right" class="arial">Last Name</div></td>
<td><input name="last" class="input" type="text" /></td>
</tr>
<tr>
<td width="116"><div align="right" class="arial">Username</div></td>
<td width="177"><input class="input" name="username" type="text" /></td>
</tr>
<tr>
<td><div align="right" class="arial">Password</div></td>
<td><input name="password" class="input" type="text" /></td>
</tr>
<tr>
<td><div align="right" class="arial">Group</div></td>
<td><input name="group" class="input" type="text" /></td>
</tr>
<tr>
<td><input name="" type="submit" value="Add User" /></td>
<td><button style="width:100px; position:relative; margin-left:-20%"><a href="../homeAdmin.php" align = "center"> Go back to menu </a></button></td>
<td><button style="width:130px; position:relative; margin-left:-20%"><a href="../userMaintenance.php">Return to User Page </a></button></td>
</tr>
</table>
</form>
</body>
<html>