crazyman Posted September 2, 2007 Share Posted September 2, 2007 Hi can someone just point me in the general direction of a php registration tutorial, where registration means the new member gets their own page which no other member can access....? Thanks Link to comment https://forums.phpfreaks.com/topic/67690-php-registration-script-tutorial/ Share on other sites More sharing options...
matthewhaworth Posted September 2, 2007 Share Posted September 2, 2007 *sigh*. phpfreaks.com exists for a reason, it contains more than a forum, it contains tutorials. Google.com is also slightly useful. Link to comment https://forums.phpfreaks.com/topic/67690-php-registration-script-tutorial/#findComment-340068 Share on other sites More sharing options...
Crew-Portal Posted September 2, 2007 Share Posted September 2, 2007 When making a registration you want field that havve $_POST['get']; Variables assigned to them! these then go into the database and when you make a login it simply goes SELECT FROM TABLE `users` WHERE USERNAME=$_POST['username'] AND PASSWORD=$_POST['password']; Then it takes that data. Sees if the SQL is correct and if so looks for the datafield containing that Query and if it finds it then it registers a Session Super Gglobal. allowing you to do stuff. Then say your superglobal is called $valid_user (Which is the global I always use) then it registers it and later sees if it is registered like: <?php $valid_user = $_SESSION['valid_user']; if (session_is_registered('valid_user')){ echo 'You Are logged in As' . $valid_user . ''; } ?> Link to comment https://forums.phpfreaks.com/topic/67690-php-registration-script-tutorial/#findComment-340070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.