Ask coding questions

← Back to all posts
How do you create a WORKING login form?
patelr

How do I create a WORKING log in form, which remembers you and you are able to create an account? I have also struggled with this a lot in the past.

Answered by CosmicBear [earned 5 cycles]
View Answer
Voters
patelr
Comments
hotnewtop
CosmicBear

You need a backend server (try flask or node.js) with a database. For example:

patelr

thank you so much, i am finally free from my [email protected]

ch1ck3n

you can't just do it with HTML

i am not going to give you code because you will learn to do it yourself

eh the hell with it

first the HTML

POST is a more secure way than GET

next I assume you are using express with nodejs

you will make a post route app.post() and in that function you will get the form values and set it to the database

patelr