Ask coding questions

← Back to all posts
Can someone help me?
JordanDixon1 (447)

I have been trying for months on my own to try to make my own social media website. I can't seem to get past trying to make a login/register system with php, html, javascript, or anything else. I have been trying to do this with but it's too complicated for me. If anyone can help me then that would be greatly appreciated.

Answered by HackermonDev (1990) [earned 5 cycles]
View Answer
mwilki7 (1130)

My temporary solution would be just a plain text file somewhere.
Take the username and password and put it in a comma separated format.


When a user attempts to login:
    if username exists, compare the password
         if password matches the one in the text file
              login successful
              login failed
        username does not exist, login failed

However secure/insecure this is, it would be just a functioning prototype that you can come back to later while you work on the other parts of the site.

Deacon_Cronin (66)

@mwilki7 Yeah definitely do not do this. It does work, but SQL injections would be scarily easy and the database being stored in plaintext is very insecure.

mwilki7 (1130)

I already stated that this is a temporary solution. The intent of my answer was to give OP a functional prototype so the rest of the program can be fleshed out.

JordanDixon1 (447)

@mwilki7 thanks. I have already thought of this however and due to security reasons have marked it off my list. ._.

Zavexeon (1178)

@JordanDixon1 This'd be better if you store the password as a hash.