Skip to content Skip to sidebar Skip to footer

Getting Form Data From Html Form Using Flask And Python

I am trying to get the form data out of the text fields when the submit is pressed so I can put it into json format and access the json data as another page which would be localhos

Solution 1:

I tried your code and it works for me.

I only had to add global in cars() to get results on page /info.json

def cars():
    global numCarsEast, numCarsWest, numCarsSouth, numCarsNorth

Post a Comment for "Getting Form Data From Html Form Using Flask And Python"