Found a page: https://www.geeksforgeeks.org/retrieving-html-from-data-using-flask/ with a screen shot that parallels what I want to do - in terms of connecting to the DB. Below is the screen shot that I was able to implement in FLASH_APP.PY and ThreeIndex.html in VDP. Below is the Threeindex routine from FLASK_APP.py: @app.route('/Threeindex', methods =["GET", "POST"]) def Threeindex(): """Renders the home page.""" from datetime import date, datetime, timedelta import mysql.connector import sys if request.method == "POST": # getting input with name = fname in HTML form first_name = request.form.get("fname") print('InfoForm a debugginng message 2 ', file=sys.stderr) print(first_name, file=sys.stderr) # getting input with name = lname in HTML form ...
Comments
Post a Comment