Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sample user administration

Posted on 2015-02-15
6
Medium Priority
?
44 Views
Last Modified: 2015-03-06
I don't want to re-invent the wheel but I can't find any samples of an interface where a user can add/delete users, and hopefully reset passwords.  When i google I only find how to use cookies and sessions, etc.

So something like:
UserName   FirstName  LastName   Delete User  Change Password

anybody have some links or some sample code.
0
Comment
Question by:UniqueData
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 40611591
Users are normally identified with cookies and sessions.  What you show is what you would see on an admin page after logging into the admin section.  The info is normally stored in a database that is checked when a user tries to log in.
0
 
LVL 7

Author Comment

by:UniqueData
ID: 40611625
Sorry, I guess I didn't explain well enough

I want a webpage for someone to be able to add/delete, say from a Staff Table.  So the user would see a list of staff and have the ability to add/delete staff.  typical fields would be Phone Number, department, etc.  

of course I will restrict access to this page so only supervisors can get to this page.
0
 
LVL 7

Author Comment

by:UniqueData
ID: 40611640
Ahh, I finally found some samples when I googled 'Add/Edit php'

This looks interesting:
     http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 111

Expert Comment

by:Ray Paseur
ID: 40612076
No offense meant to the author Jovan, but that code example mentions Firefox 3, IE4, and Windows 98.  It's several years old and may be functionally obsolete by now.  

This article shows the general design pattern for client authentication in PHP.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_2391-PHP-login-logout-and-easy-access-control.html

If you're new to PHP and want to find some good learning resources, this article can help you find those.  Perhaps more importantly, it can help steer you away from the many bad PHP examples that litter the internet.
 http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11769-And-by-the-way-I-am-new-to-PHP.html

Best of luck with your project, ~Ray
0
 
LVL 7

Accepted Solution

by:
UniqueData earned 0 total points
ID: 40612399
Thanks Ray.  You had given me those links when I was working on my first register/login webpage.  I am actually using your exact code on this one too (as far as login/logout).  I love it.  But for this one I am having their manager add staff instead of having a register page so I wanted a nice looking grid for him to add/delete/edit. Plus there will be other grids for data entry.

The link I provided talks about DataTables, which looks is being updated through the years. I just downloaded 1.10.5 and it seems to be working perfectly.
0
 
LVL 7

Author Closing Comment

by:UniqueData
ID: 40648800
i was able to find a solution
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question