+ 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!!
4 Answers
+ 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
+ 2
Shail Murtaza, that's what i was also thinking but i wanted more ideas
+ 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.
+ 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.