Solved

sample user administration

Posted on 2015-02-15
6
32 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
  • 4
6 Comments
 
LVL 83

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 109

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

777 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