I am making a simple PHP Chatroom, but I've never used PHP before. I just want to know how do you make a login that'll actually save and be able to be read?
PHP databases like SQL do not work on repl.it. You're going to have to use remotesql or some other remote database service instead (some are free, most are paid).
@mamamia5x You can store text to files, yes, but repl.it will reset them at least once per day, preventing any type of file-based database from working on repl.it
Despite this, I'll still tell you how to write the js files in text files: Just send them via ajax post request to a PHP file which writes them to the database.