Jump to content

dmarks2061

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by dmarks2061

  1. Hi Ben; thanks for commenting. No, I haven't watched those videos yet. I scanned the subjects, but didn't connect the general topic of permissions with the specifics of controlling views. DOI! I'll check the videos out, and I appreciate the pointer. Take care! Mark___
  2. OK, never mind. I just started throwing variables out there and checked the output till I got the one that works. Heck of a way to learn a language, eh? So the winning combination is: if ($username == 'admin') { echo '<form action="register.php" method=""> <input type="submit" name="submit" class="submit" value="Add User"> Sometimes it takes a posting to get the brain to working. Ciao! DMarkS
  3. 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
×
×
  • Create New...