Flask-Workshop/templates/cookies.html

14 lines
344 B
HTML

<html>
<body>
{% if name is none %}
<form method = "POST">
<p><h3>Enter your name:</h3></p>
<p><input type = 'text' name = 'name'/></p>
<p><input type = 'submit' value = 'Send'/></p>
</form>
{% else %}
<p><h3>Hello {{ name }}! I will remember you..</h3></p>
{% endif %}
</body>
</html>