Relative Content

Tag Archive for pythonhtmlflask

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.

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.