How to store a users input into a database?
BartKeijzer

So, I want to store a users input, into a database, but I really don't know how to.
Could anyone please help me with it?

You are viewing a single comment. View All
VulcanWM

Flask is a way to make websites where other people can use the repl with the database without any problems
When you do normal inputs (it is in your console) so the database will only work for you
But if you want to do normal input, use the code below

from replit import db
name = input(“What is your name?”)
data = input(“What do you want to save?”)
db[name] = data

@BartKeijzer