I love coding. I am good at it too!
•8 months ago
published a Repl
•2 years ago
published an Update
Very FunTry it out, it's not scary at all so don't worry. Do have a go.
This is to help yourself find your next phone! By patelr
HTML, CSS, JS
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.
BangLuonfrom flask import Flask,request from replit import db app = Flask(name) @app.route('/login',methods=["GET","POST"]) def login(): if request.method == "POST": db[request.form["username"]] = request.form["password"] return1 year ago
CosmicBearYou need a backend server (try flask or node.js) with a database. For example: #python from flask import Flask,request from replit import db app = Flask(name) @app.route('/login',methods=["GET","POST"]) def login(): if request.method == "POST": db[request.form["username"]] = request.form["password"] return `2 years ago
ch1ck3nyou 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 database2 years ago
Did you ever think you could play would you rather with a computer? Well now you can! You will be asked a series of questions and you are to type your
lsikoraCool! I would add a few thing here. The first being so it gives you a actual score. Not just 10-22. Another thing is changing the formating of the inputs. Here is a example import time #puts time in there print("Would you rather fall in lava or drown in water?") #asks the question time.sleep(1) #waits 1 second so you can think fa = input() #lets the quiz taker input there response print(fa) #prints out the response This is just a example and you can go in debt with if, else statements after, bu2 years ago