Hi folks. I've been implementing a login system for a client using the PHP Login tutorial Ben Falk did. The problem is, I don't want just any member to be able to add a new member; that should be reserved for the admin. But I can't figure out how to restrict the option based on user name.
I've added a line to the v_members.php file to test the operation. It looks like this:
if ('admin' == 'admin')
{
echo '<form action="register.php" method="">
<input type="submit" name="submit" class="submit" value="Add User">
which works fine. Now I need to replace the first argument ('admin') with the member name entered. I've played around with "username", $input['username'], $_POST['username'], etc. but haven't figured out how to do this.
Any suggestions would be appreciated. Thanks!
DMarkS