diff options
| author | Clyhtsuriva Synck <clyhtsuriva> | 2020-03-01 15:14:15 +0100 |
|---|---|---|
| committer | Clyhtsuriva Synck <clyhtsuriva> | 2020-03-01 15:14:15 +0100 |
| commit | 703c1c623892d69d8e24af68b31d84495301ca02 (patch) | |
| tree | 743b32ed4cc4a5d597b4fbc5726e0c3e52bf7c7b /form-connexion.py | |
| parent | f33d24f47fa9d39e687d55cff1de9b4cc4ceb033 (diff) | |
| download | dynamicWebsite-Project-703c1c623892d69d8e24af68b31d84495301ca02.tar.gz dynamicWebsite-Project-703c1c623892d69d8e24af68b31d84495301ca02.tar.bz2 dynamicWebsite-Project-703c1c623892d69d8e24af68b31d84495301ca02.zip | |
initial files
Diffstat (limited to '')
| -rw-r--r-- | form-connexion.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/form-connexion.py b/form-connexion.py new file mode 100644 index 0000000..09eaf70 --- /dev/null +++ b/form-connexion.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import mod_python +import fonctions + +def index(req): + req.content_type="text/html" + req.write(fonctions.codeHTML("Page de connexion",""" +<h2>Veuillez vous connectez pour accéder à nos services.</h2> +<form method="POST" action="connexion.py"> + <table> + <tr> + <td>Login</td> + <td><input type="text" name="login"/></td> + <td></td> + </tr> + <tr> + <td>Mot de passe</td> + <td><input type="password" name="password"/></td> + <td><input type="submit" value="Valider"/></td> + </tr> + </table> +</form> +""")) |
