Solved

sample user administration

Posted on 2015-02-15
6
28 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 82

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 108

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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now