le 17/06/2014 à 17:03
Aidez moi
slt SVP je voudrais avoir un code JavaScript me permettant de vérifier le numéro matricule d'un élève.
je vous remercie.
je vous remercie.
<? php
if( isset($_POST['drenetomi6'])&&isset( $_POST['nomomi6'])&&isset($_POST['numtablomi6'])&&isset( $_POST['numtablomi6'])&& isset( $_POST['tgpomi6'])&& isset( $_POST['datnaissomi6'])&&isset( $_POST['lieunaissomi'])&&isset( $_POST['numextrait'])&&isset( $_POST['datdelivr'])&&isset( $_POST['villdelivr'])&&isset( $_POST['nompere'])&&isset( $_POST['nommere'])&&isset( $_POST['v1omi6'])&&isset( $_POST['v2omi6'])&&isset( $_POST['datomi6'])&&isset( $_POST['v3omi6'])&&isset( $_POST['emailomi6'])){
$drenetomi6= addslalashses($_POST['drenetomi6']);
$nomomi6= addslalashses( $_POST['nomomi6']);
$prenomi6= addslalashses( $_POST['prenomi6']);
$numtablomi6= addslalashses( $_POST['numtablomi6']);
$tgpomi6= addslalashses( $_POST['tgpomi6']);
$datnaissomi6= addslalashses( $_POST['datnaissomi6']);
$lieunaissomi6= addslalashses( $_POST['lieunaissomi6']);
$numextrait= addslalashses( $_POST['numextrait']);
$datdelivr= addslalashses( $_POST['datdelivr']);
$villdelivr= addslalashses( $_POST['villdelivr']);
$nompere= addslalashses( $_POST['nompere']);
$nommere= addslalashses( $_POST['nommere']);
$v1omi6= addslalashses( $_POST['v1omi6']);
$v2omi6= addslalashses( $_POST['v2omi6']);
$datomi6= addslalashses( $_POST['datomi6']);
$v3omi6= addslalashses( $_POST['v3omi6']);
$emailomi6= addslalashses( $_POST['emailomi6']);
/*insertion dans la base de données*/
include("connect.php");
$req= "INSERT INTO omielevsix values('$numtablomi6','$nomomi6','$prenomi6','$datnaissomi6','$numextrait','$datdelivr','$villdelivr','$nompere','$nommere','$drenetomi6','$tgpomi6','$lieunaissomi6','$v1omi6','$v2omi6','$v3omi6','$emailomi6')";
$res= mysql_query($req);
if ($res) {
echo" votre demande serra traitée merci";
}
msql_close();
}
?>
<? php
if( isset($_POST['drenetomi6'])&&isset( $_POST['nomomi6'])&&isset($_POST['numtablomi6'])&&isset( $_POST['numtablomi6'])&& isset( $_POST['tgpomi6'])&& isset( $_POST['datnaissomi6'])&&isset( $_POST['lieunaissomi'])&&isset( $_POST['numextrait'])&&isset( $_POST['datdelivr'])&&isset( $_POST['villdelivr'])&&isset( $_POST['nompere'])&&isset( $_POST['nommere'])&&isset( $_POST['v1omi6'])&&isset( $_POST['v2omi6'])&&isset( $_POST['datomi6'])&&isset( $_POST['v3omi6'])&&isset( $_POST['emailomi6'])){
$drenetomi6= addslalashses($_POST['drenetomi6']);
$nomomi6= addslalashses( $_POST['nomomi6']);
$prenomi6= addslalashses( $_POST['prenomi6']);
$numtablomi6= addslalashses( $_POST['numtablomi6']);
$tgpomi6= addslalashses( $_POST['tgpomi6']);
$datnaissomi6= addslalashses( $_POST['datnaissomi6']);
$lieunaissomi6= addslalashses( $_POST['lieunaissomi6']);
$numextrait= addslalashses( $_POST['numextrait']);
$datdelivr= addslalashses( $_POST['datdelivr']);
$villdelivr= addslalashses( $_POST['villdelivr']);
$nompere= addslalashses( $_POST['nompere']);
$nommere= addslalashses( $_POST['nommere']);
$v1omi6= addslalashses( $_POST['v1omi6']);
$v2omi6= addslalashses( $_POST['v2omi6']);
$datomi6= addslalashses( $_POST['datomi6']);
$v3omi6= addslalashses( $_POST['v3omi6']);
$emailomi6= addslalashses( $_POST['emailomi6']);
/*insertion dans la base de données*/
include("connect.php");
$req= "INSERT INTO omielevsix values('$numtablomi6','$nomomi6','$prenomi6','$datnaissomi6','$numextrait','$datdelivr','$villdelivr','$nompere','$nommere','$drenetomi6','$tgpomi6','$lieunaissomi6','$v1omi6','$v2omi6','$v3omi6','$emailomi6')";
$res= mysql_query($req);
if ($res) {
echo" votre demande serra traitée merci";
}
msql_close();
}
?>