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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
<?
session_start();
require("m_fonctions_utiles.php");
require("codes_oracle.php");
m_Sql_Connect_Oracle(SERVEUR_ORACLE, UTILISATEUR_ORACLE, MOTDEPASSE_ORACLE, NOMBASE_ORACLE);
if (!empty ($_POST['id_stagiaire']))
{
$_SESSION['id_stagiaire']= $_POST['id_stagiaire'];
}
?>
<html>
<head>
<body font bgcolor = #C0C0C0>
<font face=papyrus >
<b>
<title>Identification</title></head>
<body bgcolor=#99ccff>
<table align=center border=2 bordercolor=white cellpadding=5>
<h3 align=center><B>Veuillez vous enregistrer :</b></h3>
<table align=center border=2 bordercolor=white cellpadding=5>
<form method= 'post' action=presence.php>
<tr><td><font color='black' size=4>votre identifiant :</td><td><input type='text' name='id_stagiaire'></td></tr>
<tr><td colspan=2><center><input type='submit' value='ENTRER'></form></td></tr></FORM>
<br><br>
</form></td></tr></CENTER>
<font face =comic sans ms>
<tr><td colspan=2><center>
</table>
<br><br>
</body>
</html>
<?
if ( !empty($_POST['id_stagiaire']) )
{
$id_stagiaire = $_POST['id_stagiaire'];
$Req_login="SELECT id_stagiaire FROM stagiaire WHERE id_stagiaire = '".$id_stagiaire."'";
$req_update = m_Sql_Execute_Oracle($req_login,$link);
m_Sql_Close_cnx_Oracle();
if (($id_stagiaire==$req_update['id_stagiaire']))
{
header('location:presence.php');
}
else
{
echo "<font color =#99cccc>"."Le pseudo ou le mot de passe que vous avez entré est incorrect"."</font>";
exit;
}
}
?> |
Partager