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
|
<?
session_start();
session_id();
require("m_fonctions_utiles.php");
require("codes_oracle.php");
m_Sql_Connect_Oracle(SERVEUR_ORACLE, UTILISATEUR_ORACLE, MOTDEPASSE_ORACLE, NOMBASE_ORACLE);
$_SESSION['id_stagiaire']= $_POST['id_stagiaire'];
$id_stagiaire = $_POST['id_stagiaire'];
//$id_stagiaire=$_SESSION['id_stagiaire'];
$sql_postulant="select ID_STAGIAIRE from STAGIAIRE ";
$req_postulant=m_Sql_Query_Oracle($sql_postulant);
while ($res_postulant=m_Sql_LigneRs_Oracle($req_postulant))
{
$id_mysql = $res_postulant['id_stagiaire'];
if ($id_stagiaire == $id_mysql)
{
header ('location:presence.php');
}
else
{
echo "pas bon";
}
}
<html>
<head>
<body font bgcolor = #C0C0C0>
<font face=verdana >
<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>
</table>
<br><br>
</body>
</html> |