Login Register






Tutorial [Release] Basic Registration/Login system filter_list
Author
Message
[Release] Basic Registration/Login system #1
I wanted to make another release so I thought I'd make a basic registration and login system.

Images:

Register.php
Spoiler:
[Image: register.PNG]


Login.php

Spoiler:
[Image: login.PNG]

install.php
Spoiler:
[Image: install.PNG]


Logged in:
Spoiler:
[Image: loggedin.PNG]


Download it here

Give me your thoughts below!
Tutorials & Releases:

[Tutorial] PHP: Getting Started
[Release] [HF Cool List] Are you cool?


PM me if you need any PHP help.

Reply

RE: [Release] Basic Registration/Login system #2
If you ask me you should totes make it centered and fit the page so that way there isn't so much leftover room.

Reply

RE: [Release] Basic Registration/Login system #3
Looks good, I may use this sometime. Nice release!

Reply

RE: [Release] Basic Registration/Login system #4
Looks really cool, I will totally use this!

Reply

RE: [Release] Basic Registration/Login system #5
Why are you comparing the return from mysqli_num_rows with "1" as a string? It returns an int unless the value returned to the caller is greater than PHP_INT_MAX, in which case it is a string, but if you compare it with "1" via the equality operator, obviously you're not anticipating it to be such a large numeric value... I'd use some more functions too and gather a collection of error codes that you can check against the function return values to be matched. Those nested if statements could definitely be cleaned up. I'd prefer to not use cookies either for various reasons.

edit: btw, it's not a good thing to be solely relying on mysqli_escape_string() to do all of the SQL injection prevention for you. I'd suggest you use Regex and match valid values that are allowed for the charset as input, as long as you know which ones are dangerous to include as valid.

Reply