Example #1
0
         <tr><td width=200px;>User Id:</td><td><input type="text" name="user_id"/></td></tr><br/>
      </table>
	<br/>
	<input type="submit" value="Delete"/>
    </form>	

</td></tr>
</table>
<br/><br/>

<form name='userdetails' method ='post' action="user_mgmt.php?action=details">
<select name="username" onChange="document.forms['userdetails'].submit()">
<?php 
    $dbh = Connection::cal_ro();
    $obj_assignee = new calendarConfig();
    $users = $obj_assignee->getUserList($dbh);
    $username = "******";
    if ($_POST['username'] && $_GET['action'] == "details") {
        $username = $_POST['username'];
    }
    ?>
<option selected> <?php 
    echo $username;
    ?>
 </option>
<?php 
    for ($i = 0; $i < count($users); $i += 1) {
        if ($users[$i]['username'] != $username) {
            ?>
		<option> <?php 
            echo $users[$i]['username'];