Click here to Skip to main content
14,920,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to connect my html form to sqlite database, so that it can store the registration/login information into the database. I have the html form and database, but I cannot get them to link together. If someone can please help me what I need or how is it possible or point me to some examples would be very much appreciated. I cannot seem to figure out a way and I have searched and searched and spent weeks now. I am reach out because I need this to be done for my project by this month.
Please Help

What I have tried:

I cannot seem to figure out a way and I have searched and searched and spent weeks now. I am reach out because I need this to be done for my project by this month.
Posted
Updated 19-Mar-21 7:44am

You don't.

The login operation happens on the server, not the client. The browser just sends the username and password to the server for any login operation and the server handles all the database stuff, authenticating the user and returning an appropriate page for that user.
   
Comments
Member 15108664 19-Mar-21 13:14pm
   
So if I dont need to link the html form with sqlite database, then how does the credentials get stored in the database?
Dave Kreskowiak 19-Mar-21 13:15pm
   
Again, server-side code. Think of the HTML side as nothing more than a form you fill in and submit to the server. The server code handles ALL database work.
Member 15108664 19-Mar-21 13:27pm
   
Okay I see what you are saying, so for example my server is local server and if a user login, the credentials goes to that local server which communicates with the sqlite database and stores it there. Correct? (Everything is based on local network)
Thank you Dave for helping me understand this, I have never done anything like this before so its all new and learning process that I am going through. (:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900