Password and User Log On Problem

This is a discussion on "Password and User Log On Problem" within the PHP Forum section. This forum, and the thread "Password and User Log On Problem are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 9th, 2007, 12:44
New Member
Join Date: Jan 2007
Location: Yorkshire
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
OK, Newbie with a problem

I want to put an area of my site to one side for members only so that they have to log in with a user name and password (including the old 'forgotten your password?' thing) but I haven't a clue how to do it. As you reply, please assume I am an idiot.

Thanks,
Gina (Idiot)

Last edited by Daniel; Jan 9th, 2007 at 13:00. Reason: moved to new thread cause had nothing to do with the thread where you placed it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 9th, 2007, 13:08
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

Have you any knowledge of server side scripting such as php and using a database such as MySQL because you are going to need both?

You can get ready made login scripts from various web sites but I always think it better if you actually understand what is going on, then if something is not happening as you thought, you have a fighting chance of fixing it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 9th, 2007, 21:32
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

This is actually very simple Gina, (once you get your head around it)

But... please, never ever assume you question is stupid, the only way we can learn is to ask.

First off, I would suggest that you attempt this using PHP and MySQL, PHP is a server side scripting language, this means that it is processed on the server, as opposed to on the users browser like HTML.

Mysql is confusing, especially for beginners, its best to think of it in two parts. Part 1 would be a database (a bit like excel) and part 2 would be a language used to manipulate this database (SQL).

The basic premis of a user system requires a little reading on your part im afraid, I will however tell what it is that you need to read up on, and since im nice, ill provide some links for you.

1) PHP Sessions : This really is at the center of the issue, and while it may take you a while to get your head around it, do perservere, because its well worth it in the end, the best place to start on this would be (in my opinion) here : http://www.tizag.com/phpT/phpsessions.php

2) MD5 Encryption : this is extremely easy all you need to do is put md5(whatever you want encrypted goes here) ... but google it and you'll see some better examples, its basically a method of encrypting the passwords before you store them in your database, improves security.

3) Manipulation of Datbase' : to do a simple membership system you will probably only need to know about the sql SELECT, WHERE & FROM commands, as well as how to use php If Else statements, again this isnt difficult, if you perservere.

Ok, well there is other bits that your going to need to know about, but the best way to go about it is probably to start to learn, and then ask more questions when you run into problems.

As a final note ill leave you a link to a tutorial for a membership system, its not a fools guide, and will require some effort from you to make it work the way you want it to (you probably wont want the image upload facility for example), but, it is an excellant tutorial and should give you some code to play with, you can find it here : http://www.phpfreaks.com/tutorial_ca...ip-Systems.php

One final point, In order to test php and Mysql on your own (local) machine, you will need to setup a web server (like Apache or IIS), the easiest way to get everythin working on your home pc is to install and configure a suite of software called WAMP... or LAMP if you use Linux... getting wamp working properly can be very difficult in itself, but is easier than setting the constituent parts up individually.

If you dont want to bother installin WAMP (windows apache , mysql, php) and no-one would blame you tbh... then find yourself some webhosting that allows you to use php and mysql databas's, most paid hosts will, and a good free one is Lycos Tripod ot phpnet.us.

Anymore questions dont be afraid to ask

Good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 10th, 2007, 07:38
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

I was a little tired when i posted last night, I forgot to mention, allthoguh it is somewhat obvious, that you will need to learn how to create database' and tables.... look into using phpmyadmin for this (it comes with WAMP) alot of paid hosts also use a version pf it on there servers... its extreemely good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 10th, 2007, 11:32
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

Accu's advice is pretty much the same as mine, only I think basic MySQL is the easiest thing I've ever learned. By all means use a graphic interface like MyPHPAdmin. I had a fully functional database working 4 hours after I picked up the book for the first time. (Managing a big SQL operation, on the other hand, is an expert-level task.)

PHP -- not so easy. The first book I got was "PHP and MySQL for Dynamic Websites" by Larry Ullman and I recommend it highly. If you start on page 1 and read every word and do all the exercises, you'll end up with a solid foundation AND a working membership program.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 10th, 2007, 16:56
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

ah yeah I started with exactly the same book and I also highly reccomend it, its very detailed and it realy does build up a realy good foundation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 10th, 2007, 17:35
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Password and User Log On Problem

My main problem with mysql was a basic understanding issue... sql in itself is extreemly easy, I had some sort of mental hangup on what a mysql database actually was, and this had me confused for a day or two while i read around.

I dont tend to use books that much when starting out on a new language, I tend to use the internet for most things..... however i would seriously recomend you get yourself a php handbook... i use my little pocket size codebook virtually everyday.


The for dummies books are also pretty decent for an entry level textbook .... stay away from "Sam's TEach yourself to Yodel" books... they are awfull

Last edited by Accurax; Jan 10th, 2007 at 17:38.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
password, user, log, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot password and Change password PHP script Chono PHP Forum 4 May 16th, 2008 09:13
need help with password VanHype JavaScript Forum 2 May 24th, 2007 12:05
md5 password error csun PHP Forum 2 May 9th, 2007 02:29
Username & Password robukni PHP Forum 13 Apr 4th, 2007 22:36


All times are GMT. The time now is 15:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42