Forms not working in Flask; 400 error

Context
I am making a Flask website for programming contests where the user will complete a login form and submit a URL to submit the contest entry.
Problem
I have tested this with my friend, @Evanisha, and when he tried to submit an entry, it returned a 400 bad request.
Website Link
contests.elementium.repl.co/submit
Repl Link
replit.com/@elementium/Contests?v=1#main.py

for="url" is a typo, it should be name="url". (Flask returns 400 when you try to access a form field that does not exist, and because of the typo it did not exist)

Lol, typos are the most annoying kind of problem, because everything looks right but it is not.

3 Likes

Thank you very much! My website works first integration of Replitdatabasedominationthewebsiteiscompleteyay!!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.