How do I insert fields values from an HTML page into an SQLite database?
How do I connect from HTML to SQLite?
How do I insert fields values from an HTML page into an SQLite database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to separate your problem into two pieces:
You can’t make a database connection using HTML. Best to choose an intermediate language like Python, Java, C#, PHP, etc. You shouldn’t want to, either, because you’ll want your database to be secured in some way. You don’t want unauthorized access or SQL injection attacks.
You get values out of an HTML page by sending an HTTP POST request to a listener of some kind (e.g., a Java servlet). The servlet gets the parameter, value pairs out of the request for you. You can validate them, bind them to objects, or anything else that you need to do.
Once you have the parameter, value pairs you can make a connection via something like ODBC or JDBC (if you choose Java) and INSERT them into tables using standard SQL.