Hello there,
I am trying to populate one of my drop-down menus with the names of the people who are currently logged in. In addition, I want the names to be removed from the list if they choose to log out.
Here is what I have so far: I have the log in/out script working. so after the user logs in, his/her name is recorded in a variable.
My question: how do I add this name to the drop-down menu every time someone logs in?
if it helps at all this is the bit of code i have so far:
[php]<td width = "50"><selec t name="loggedWai ters" value = "your name">
$key = 0;
<?php
//echo <option value="">your name</option>
echo '<option value="'. $key+1 . '">' .$empName. '</option>';
?>
</select></td>[/php]
I am trying to populate one of my drop-down menus with the names of the people who are currently logged in. In addition, I want the names to be removed from the list if they choose to log out.
Here is what I have so far: I have the log in/out script working. so after the user logs in, his/her name is recorded in a variable.
My question: how do I add this name to the drop-down menu every time someone logs in?
if it helps at all this is the bit of code i have so far:
[php]<td width = "50"><selec t name="loggedWai ters" value = "your name">
$key = 0;
<?php
//echo <option value="">your name</option>
echo '<option value="'. $key+1 . '">' .$empName. '</option>';
?>
</select></td>[/php]
Comment