Make button active depending on local database value
I’m creating a card database system, and wanting to pull data from a local database and make a button active if the username and card_rarity_id exist, then the related condition and edition buttons should highlight. (As shown in pic).enter image description here
HTML links modification to let it serve by Flask [closed]
Closed 17 hours ago.
Can’t visualize the validation error on flask web server
I am trying to show a validation error to the users when they try to sign up with an email or username that’s already been taken.
My website form is always sending POST request after submitting, even after reloading the webpage, causing duplications in the database
When submitting a form in the website, it saves the data inputted after submitting and if you reload or reopen the website, it sends a POST request and then immediately send the same data to the database.
Webpage for adding and removing emails from a text file
I have a very simple webpage which is just going to read a text file listing email addresses and write them into a table. Next to each row there is a delete button to delete that specific email from the list. There is also a button to save the data in the table to a file.
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Assigning the input from a HTML form as a variable
I am trying to code a URL shortener website and I have ran into a problem where I am getting ‘Error’ when trying to shorten my URL. It worked and gave a test URL when there was a link in the ‘long_url’ variable on my URL Shortener.py but when I tried changing it to get the input from the HTML form, it has stopped working. Does anyone know how to correctly assign an input from an HTML form to a python variable. I will attach my files.