Search found 5 matches
- Tue Aug 20, 2013 10:33 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 9
- Views: 5849
Re: PHP Tutorial: Register and Login (User Account System) 3
Thank you so much! Learning PHP is so tedious. How long did it take you to be able to catch mistakes like that?
- Tue Aug 20, 2013 10:21 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 9
- Views: 5849
Re: PHP Tutorial: Register and Login (User Account System) 3
Here is the code from the Login.php <?php include('core/init.inc.php'); $errors = array(); if (isset($_POST['username'], $_POST['password'])){ if (empty($_POST['username'])){ $errors[] = 'The username cannot be empty.'; } if (empty($_POST['password'])){ $errors[] = 'The password cannot be empty.'; }...
- Tue Aug 20, 2013 9:34 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 9
- Views: 5849
Re: PHP Tutorial: Register and Login (User Account System) 3
Man you guys are so awesome. I need to get better at finding these errors. Okay, one last thing that I've run into is that once I try to log in, instead of taking me to protected.php, it redirects me back to login.php, which I think there is something wrong with my init.inc.php script.
- Tue Aug 20, 2013 9:07 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 9
- Views: 5849
Re: PHP Tutorial: Register and Login (User Account System) 3
Great! Now the script is add users to the table. But my problem now is that after I register, it keeps telling me that the username/password is incorrect.
- Tue Aug 20, 2013 6:42 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 9
- Views: 5849
PHP Tutorial: Register and Login (User Account System) 3
I'm having troubles getting Users and Passwords to come up in the database. I can't figure out what is wrong with my code. I would be on the register.php page and when i try and register it would say "You are not logged in as "roxy503" Logout?" Everything else seems to run and it...