PHP Login
Posted: Thu Jan 20, 2011 12:02 pm
Hi, new here. Well, i'm not new actually, I've browsed these pages a lot, but first time posting.
I'm setting up a PHP MySQL login on our website and am having problems. Please forgive me as I am very new to PHP.
Basically, I want to delegate account type to an authorization code provided by me and entered by the user during registration. The website I am referring to is for a non-profit so I'll outline what we are attempting.
I would like for there to be one main login page and one main registration page. The user registering is already affiliated with our organization and will receive a packet of information that includes instructions on how to register and an authorization code based on the type of affiliate they are. For example, child sponsor, grant recipient or board member.
The authorization code will tell us a lot, one it will verify their affiliation with the foundation. two, it will identify what type of user to register and three it will link them to the appropriate page upon a successful login.
I found and implemented php code that does all of the mysql interaction, including encrypting passwords. But now I need to figure out how to write the if statements for the authorization code, and then how to forward to a specific page based on login.
I'm using this script: http://phpsense.com/php/php-login-script.html
any help would be greatly appreciated. I'm not very fluent with PHP so be gentle!! Thanks!
I'm setting up a PHP MySQL login on our website and am having problems. Please forgive me as I am very new to PHP.
Basically, I want to delegate account type to an authorization code provided by me and entered by the user during registration. The website I am referring to is for a non-profit so I'll outline what we are attempting.
I would like for there to be one main login page and one main registration page. The user registering is already affiliated with our organization and will receive a packet of information that includes instructions on how to register and an authorization code based on the type of affiliate they are. For example, child sponsor, grant recipient or board member.
The authorization code will tell us a lot, one it will verify their affiliation with the foundation. two, it will identify what type of user to register and three it will link them to the appropriate page upon a successful login.
I found and implemented php code that does all of the mysql interaction, including encrypting passwords. But now I need to figure out how to write the if statements for the authorization code, and then how to forward to a specific page based on login.
I'm using this script: http://phpsense.com/php/php-login-script.html
any help would be greatly appreciated. I'm not very fluent with PHP so be gentle!! Thanks!