Solved

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

Posted on 2009-07-04
4
357 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
[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 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 110

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

707 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