2022-2023/1NSI/05_Interaction_client-serveur/scripts/bottle_get_form.py
Bertrand Benjamin 5b206949dd
All checks were successful
continuous-integration/drone/push Build is passing
Feat(1NSI): requete POST et serveur bottle
2023-01-13 15:14:16 +01:00

10 lines
296 B
Python

@get('/formulaire')
def get_formulaire():
formulaire = """
<form method='post' action='bonjour'>
<input type='text' name='nom' placeholder='Votre nom ?'/>
<input type='submit' value='Bonjour bottle !'/>
</form>
"""
return template("modele_base.html", boby=formulaire)