'Flask my first code, i have problem with POST

I started to learn Flask, I have a simple task: make a button, get the name and display on the monitor, seemingly simple, I did and it does not work. The second day I sit on the smoke, could someone help me? Thank you :D

Sorry, I paste the pictures because StackOF won't let me paste the code - I don't know why... :/


enter image description here enter image description here



Solution 1:[1]

You are routing / to two different functions, move the code from inside answer and put it inside index.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohamed Yasser