1 Users appreciate this thread.
A sample register script (UPDATED)
angelrulez7 (2014-05-12 21:13:59)I suggest you salt it by doing this:
hash("sha256", $password.$variable);
a
ryanb000977 (2014-05-12 23:12:31)@mega Sure
2014-05-13 07:01:36
TheAlexRider (2014-05-28 21:19:19)I code using Microsoft Visual Web 2013 and upload with FileZilla(Its so good!) What do you? @ryanb000977
TheAlexRider (2014-07-02 21:00:59)^... You need to know a bit about SQL First. It worked for me, Ijust don't use it.
TwilightWinter (2014-09-25 15:27:56)You used, ( "" ) after echo, it is an error. After curly brackets just type the form HTML.
2014-09-25 15:28:20
✋
qwp789 (2015-06-02 02:45:07)I'll never forget the day that I connected to retarded MySQL for the first time. .-.
CoolApps (2015-06-20 13:06:17)such "bump" on a sticky.
The code posted is vulnerable to XSS. Don't use strip_tags(), kids.
Newer account: NodePoint
Log in to submit a comment
Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)
New registered users today: 7
Newest registered user: ElegantVulpes
Hello, this tutorial is a more updated and effective register script.
Step 1
Create a table in your databse named, "users" and have at least the columns below:
Column 1:
- Name: id
- Type: int
- Length: 5
Column 2:
- Name: username
- Type: char
- Length: 15
Column 3:
- Name: password
- Type: text
- Length: NULL
Column 4:
- Name: ip
- Type: char
- Length: 16
Step 2
Create the PHP code beolow:
<?php session_start(); $logged = $_SESSION['username']; if(!empty($logged)) { header('Location: index.php'
If there are errors, tell me.
A version in OOP will be posted soon!
2014-05-14 02:47:55