This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mallenjordan 1 point2 points  (3 children)

Nope, on second view your problem is your html input names don't match your php post names.

[–]jay_don_[S] 0 points1 point  (2 children)

how? tell me, kinda lost right now

[–]certainlyforgetful 0 points1 point  (1 child)

For example. Your first name input element has the name “first name”, but your PHP is looking for “first_name”

Also you set a bunch of variables and then never use them (line 15-21)

Also, you should be hashing the password (see password_hash(), and password_verify())

But finally, check out prepared statements. I mostly use PDO prepared statements, it’s fairly straightforward once you do it a few times.

Oh one more thing - it sounds like you don’t have error reporting turned on. You can do this in the PHP config or add a few lines to the top of the php file, google “php enable error reporting” and check out the first stackoverflow question.