![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2009
Posts: 28
OS: Windows Vista
|
Account Verification (PHP)
Hi all,
Just run myself into a problem with an account verification for a site I'm building. The idea is that when a new member signs up, their account has to be verified by an admin before they can log in. I have the database set up to accommodate this...with a 'verified' column (default value 0) When the admin verifies them, this changes to 1...this all work fine. However, I'm stumped on what is probably the easiest part - controlling the login page to redirect them elsewhere if their account is not verified... I understand it is something along the lines of : PHP Code:
I know this could possibly be way off...the main problem of mine is pulling the 0 or 1 value from the database... Any push in the right direction would be fantastic! Cheers, Colin Last edited by colinhall; 07-19-2009 at 07:30 AM. Reason: none |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 388
OS: Mac OS X 10.5.7 and XP SP2
|
Re: Account Verification (PHP)
Not sure what you're looking for... is this it?
PHP Code:
|
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Feb 2009
Posts: 28
OS: Windows Vista
|
Re: Account Verification (PHP)
PHP Code:
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: May 2009
Posts: 31
OS: xp sp3
|
Re: Account Verification (PHP)
Hey guys, i'm trying to set up a mysql database where an account status automatically default to inactive or '0'. When a user registers, it sends them an email for them to verify, after verification, the account become active or '1'.
HELP PLEASEEEEEEEEE!!!!! thanks alot guys!!! |
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
|
Re: Account Verification (PHP)
randyrr, you need to make your own thread rather than hijacking another one.
colinhall - so you got this squared away it looks like? On my authentication system I typically store a session variable that tells my system they're verified and if not, it sends them to the login page. It would be good to make a session token that you store in the database when they login and have each page authenticate that token/user/datetime combo (depending on your performance needs - there are alternative ways). It really depends on how sensitive your data is. I don't have to do this much because I develop for my own intranet system (not much "sensitive data"), so I have everyone authenticate against the Active Directory system and everyone is an employee, so not a lot of mistrust (I still take precautions not to get caught off guard by a disgruntled employee though, hah)
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
![]() |
| Thread Tools | |
|
|