def hello():
form = ReusableForm(request.form)
print(form.errors)
if request.method == 'POST':
name=request.form['name']
password=request.form['password']
email=request.form['email']
print(name, " ", email, " ", password)
if form.validate():
# Save the comment here.
flash('Thank you, ' + name)
else:
flash('Error: All the form fields are required. ')
return render_template('hello.html', form=form)
评论列表
文章目录