try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > PHP/MySQL


PHP User Registration System

This is a discussion on PHP User Registration System within the PHP/MySQL section, part of the Programming category; sound good. are you using actually using that ? And can you show us how to do it ? we'd ...

Reply
 
LinkBack (1) Thread Tools Display Modes
  #21  
Old 24-10-2008, 03:55 PM
No Avatar

Learner
 
Join Date: Oct 2008
Posts: 5
runrunforest is on a distinguished road
Default

sound good. are you using actually using that ? And can you show us how to do it ? we'd love to see your guide.
Reply With Quote
  #22  
Old 24-10-2008, 06:56 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

are you using actually using that ?
As Said by runrunforest
Yes and No.

I am still using it on my Demo website coz have no time to update it. But the Website Directory you see here uses the exact system that I described.

The query that is executed when you visit the directory is like this:-

PHP Code:
SELECT FROM directory WHERE visible '1'
If I have moderation of links enabled in the directory then a value of 0 is inserted in the visible column which restricts it from public display and put it in moderation queue instead. Then when I visit the moderation page, the following query is executed:-

PHP Code:
SELECT FROM directory WHERE visible '0'
Atlast when I approve a link, the following UPDATE query runs:-

PHP Code:
UPDATE directory SET visible '1' WHERE id '$unique_id'
See how simple and convenient that is
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #23  
Old 27-10-2008, 12:32 PM
No Avatar

Learner
 
Join Date: Oct 2008
Posts: 5
runrunforest is on a distinguished road
Default

Thats truely fascinating as I just stared basics of PHP.

Vinayaks, I beg you to post the complete tutorial with new method I want to learn them as soon as possible.
Reply With Quote
  #24  
Old 27-10-2008, 01:15 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

well.. I had already described it. It isn't hard to implement it now. Just go through this tutorial carefully and am sure you'd be able to do it.

The rest of the parts i.e. after the email despatch will come soon. Its simply not possible now due to lack of time, but in a month for sure.

Btw.. my name is Vinayak and s is apostrophe
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #25  
Old 27-10-2008, 05:01 PM
No Avatar

Learner
 
Join Date: Oct 2008
Posts: 5
runrunforest is on a distinguished road
Default

why wouldn't you use md5 instead sha256 ? for encode password
Reply With Quote
  #26  
Old 27-10-2008, 06:03 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

SHA-256 is a 256-bit (32-byte) message digest hash and is meant to provide 128 bits of security against collision attacks.

Thus it is very strong, much much stronger than md5. And there are news even that md5 has been ****ked already.
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #27  
Old 22-11-2008, 06:44 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

Just a small update:-

As with PHP 5, we now have an inbuilt hash function to use SHA256. So in register.php, simply remove the requirement of sha256.inc.php (its not needed anymore unless you are still using PHP 4)

Replace this line:-

PHP Code:
$encrypted_password=sha256($password); 
With this:-

PHP Code:
$encrypted_password=hash('sha256',$password); 
Thats it
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #28  
Old 28-01-2009, 11:14 AM
No Avatar

Learner
 
Join Date: Sep 2008
Posts: 2
prakashm88 is on a distinguished road
Default

This post helped me to create a registration form and i find the password encrypted using SHA. Im also creating a login windows in which the password has to be decrypted and checked for login. i need help on this. kindly create a post/thread and show me the steps involved in it.
Reply With Quote
  #29  
Old 28-01-2009, 11:21 AM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

You cannot decrypt it. Login would be secure as well.

What you have to do is to simply:

-Create a login form
-Store the password input in a variable
-Convert it to SHA encrypted form and store it in another variable $encrypted_pass
-Match the $encrypted_pass with the password stored in table and login.
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #30  
Old 02-03-2009, 07:30 PM
TaL's Avatar
TaL TaL is offline

Moderator
 
Join Date: Dec 2008
Location: Canada
Posts: 75
TaL will become famous soon enoughTaL will become famous soon enough
Default

Hi All

Just posting this to try and keep interest in this thread alive.

I am looking forward to the last part of this tutorial that deals with the user maintenance stuff. I have a friend who just e-mailed me that he could not remember his password lol
__________________
Go placidly amid the noise and haste, and remember what peace there may be in silence

The Desiderada
Reply With Quote
  #31  
Old 02-03-2009, 07:43 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

haha.. sure, I'll get this maintenance stuff done this week. It will include:-

- Resending of activation mails by user themselves
- Forgot Password feature
- An overview of the login process.
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
  #32  
Old 30-06-2009, 10:22 AM
No Avatar

Learner
 
Join Date: Sep 2008
Posts: 2
prakashm88 is on a distinguished road
Default

hi,

how can use the encrypted password for user login. I mean if the user enters the password for login, how can i check the correctness in the login page.

thnaks in advance
Prakash
Reply With Quote
  #33  
Old 30-06-2009, 08:56 PM
webwizzy's Avatar

Administrator
 
Join Date: Feb 2008
Location: India
Phone: Nokia N70 Music Edition
Posts: 1,025
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

Really simple. Btw I did answered you here.
http://tech6.com/f19/php-user-regist...45-2/#post2382
__________________
Always TAG and BOOKMARK your threads
Submit your site to TECH6 Directory

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter



Reply With Quote
Reply

Bookmarks

Tags
tutorial, user registration system


Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://tech6.com/f19/php-user-registration-system-t145/
Posted By For Type Date
PHP User Registration System This thread Refback 15-09-2009 01:33 PM



All times are GMT +5.5. The time now is 10:05 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top