web_server.php 610 Bytes
Newer Older
Okthane's avatar
n  
Okthane committed
1 2 3
<?php
if($_SERVER["REQUEST_METHOD"]=="POST"){
    $data = array(
Okthane's avatar
Okthane committed
4
        "atraiter" => true,
Okthane's avatar
Okthane committed
5 6 7 8 9 10
        "studentId" => $_POST['studentId'],
        "prenom" => "jean-patrick",
        "nom" => "doe.remifa.sollasi",
        "mailCalcule" => "patrick.doe.remifa.sollasi@ext.imt-nord-europe.fr",
        // "mailsPossibles" => array()
        "mailsPossibles"=>array("jean-patrick.doe@ext.imt-nord-europe.fr","jean.doe@ext.imt-nord-europe.fr","patrick.doe@ext.imt-nord-europe.fr","jean.remifa.sollasi@ext.imt-nord-europe.fr","jp.doeremifasollasi@ext.imt-nord-europe.fr")
Okthane's avatar
Okthane committed
11
    );
Okthane's avatar
n  
Okthane committed
12 13 14 15

        echo json_encode($data);
}
?>