1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <?php
// Page d'index de base pour l'utilisation des fonctions 24.04.2008 David Bonvin
require("lib.php"); // Inclure, lier le fichier de dans lequel se trrouve les fonctions du projet
fPageHeader("Web Task Manager"); // Fonction de création de l'entête d'une page html
fPageTitle("Web Task Manager David Bonvin 10.10.2009"); // Fonction d'affichage du titre de la page
fPageTitle("Identification"); // Fonction d'affichage du titre de la page
mysql_connect("localhost", "root", "12"); // Connexion à MySQL
mysql_select_db("wtm"); // Sélection de la base coursphp
echo " <form action = index.php method = POST>";
$vUser = (int)$_POST['cUser'];
$vPassword = (int)$_POST['cPassword'];
echo "<table border=0 align=center> ";
echo "<tr>";
echo "<td>User </td> ";
echo "<td><input name=cUser size=10 maxlength=10 type=text value=></td> ";
echo " </tr> ";
echo "<tr>";
echo "<td>Password </td> ";
echo "<td><input name=cPassword size=10 maxlength=10 type=text value=></td> ";
echo " </tr> ";
echo "<tr>";
echo "<td colspan=2 align=center><input type=submit value=\"Connexion\"></td> ";
echo"<td></td>";
echo " </tr> ";
echo "</table><br> ";
mysql_close(); // Déconnexion de MySQL
fPageFooter(); // Fonction de création du pied de page d'une page html
?> |
Partager