Save Login Data without MySQL | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

Save Login Data without MySQL

I want to make a sample webpage which saves login data (username, email and password) Everyone says I need to learn MySQL but is there any other way around it. If there isn't, I don't mind learning it. Thanks!!

5th Nov 2020, 1:29 PM
David Emmanuel
David Emmanuel - avatar
4 Respuestas
+ 2
Though it is advised to learn a database but it is not mandatory for simple applications where you want to avoid it. You can save the form data to a JavaScript object by mapping each field. Later you can push that object to an array. So this way you will create a new object for all user entries and save it in an array which could be later used to fetch the data and manipulate if required. Reference https://stackoverflow.com/questions/31332316/how-to-store-html-form-input-as-javascript-object
5th Nov 2020, 2:09 PM
Avinesh
Avinesh - avatar
+ 2
Shail Murtaza, that's what i was also thinking but i wanted more ideas
8th Nov 2020, 6:29 AM
David Emmanuel
David Emmanuel - avatar
+ 1
David Emmanuel Generally at starting we suggest everyone to learn an relational database so that you will get some good experience in knowing query language which interact with the back-end. MySQL is an structure query language which is help you to interact with backed and store the results with it's commands like for example CRUD operation. You can also choose MSSql, Postgree sql, sqlite3 according to need and technology all are used to do the same task with different ways. Once you get some experience than you can mover forward to learn nodejs which is javascript back-end framework which uses mongo db, no sql to interact with db.
5th Nov 2020, 1:36 PM
DishaAhuja
DishaAhuja - avatar
+ 1
You can use just a simple text file which separates username, I'd and password with some sequence like , comma to separate it. And then in backend open file split it and use loops to verify user.
5th Nov 2020, 4:13 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar