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

        echo json_encode($data);
}
?>