I submit form using POST method. Form has one input field: time.
I tried to check if exist parameter:
if 'time' in request.data:
   pass
But it does not work
I submit form using POST method. Form has one input field: time.
I tried to check if exist parameter:
if 'time' in request.data:
   pass
But it does not work
You should use request.form if you're posting your data as a regular POST body query, i.e.:
@app.route('/schedule/<int:adv_id>', methods=['POST'])
def schedule(adv_id):
    if "time" in request.form:
        pass  # do whatever you want with it
