Solved

How can I put an online phone book accessible only to registered users of my website.

Posted on 2009-07-04
4
349 Views
Last Modified: 2013-12-13
I have a Small Business Network association (non-Profit I developed as a charity as a way to help people in my community network consisiting of about 200 people. I wanted to be able to put out all their information in an updatable database that I can continually add to either via a web interface or form that I or a registered user can access and in doing so once that user is registered that data information IE phone, email address etc is made available to anyone in the club. Maybe even make it searchable within the website to registered users so if they know the name they can find it or simply pull the whole list. I have a simple website made with dream weaver. Am I dreaming or is this a monumental feat to accomplish? Please advise.
0
Comment
Question by:ruavol2
4 Comments
 
LVL 12

Accepted Solution

by:
adrian_brooks earned 200 total points
ID: 24777550
Actually, what you are wishing to accomplish is a rather common task. Many websites use access control methods to only allow registered members to obtain the ability to view information.

If you're new to PHP & MySQL, I would recommend that you become familiarized with both by doing google searches for PHP tutorials as well as MySQL tutorials. On the other hand, if you have some basic skills with them, then it's just a matter of creating a users or members table in your database that will store usernames, encrypted (preferrably MD5) passwords and basic member account information.

Present them with a login form and if their login id and password matches, then set a session variable that can be used to allow only that signed in member the ability to see other pages that would otherwise be restricted from viewing.

Each page that you wish to embed behind an authentication system would just use a simple if($_SESSION['logged_in']) to check if a member is logged in and if not, then they would be redirected back to the login page and thus denied access to the member's only content. :)

Hope this was a base for you to model you site from.

~A~
0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 150 total points
ID: 24778012
What you want to do (and much more) is thoroughly described in this excellent book from SitePoint.

http://www.sitepoint.com/books/phpmysql4/

If you are interested in rapid prototyping, you might want to check out Ruby on Rails, where all of this client registration and login stuff is already built into the machine.  Or use one of the popular PHP systems like Joomla and Drupal.

Although you CAN do it, I would not recommend starting up a project by writing a registration and login system.  There is so much already written about that, and so many ways to do it wrong, that your value-added portion is almost certain to come from somewhere else in the application design.

best regards, ~Ray
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 150 total points
ID: 24778032
And since you mention Dreamweaver:

DW has a built-in server behavior that can automate the login process and protect selected pages.  All you need to do is configure the database and populate it.  The caveat is the that the DW behavior can be a little tricky to apply correctly the first time.  

If you don't want to learn PHP and you find the DW built-in behavior hard to work with and you are not adverse to spending a little money, there is an excellent extension from WebAssist called SecurityAssist that really makes password protection easy for the novice programmer.

0
 

Author Closing Comment

by:ruavol2
ID: 31599786
Great stuff gentlemen
0

Featured Post

How to run any project with ease

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

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…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 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

13 Experts available now in Live!

Get 1:1 Help Now