Show sourcecode

The following files exists in this folder. Click to view.

webbutv3/word-app/api/scentence/

verify.php

verify.php

11 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
<?php

include "../util/db_connect.php";
include 
"../util/practice.php";

// verify scentence
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    
$jsonData file_get_contents('php://input');
    
$requestData json_decode($jsonDatatrue);
    
verify_scentence($requestData["scentenceId"], $requestData["gramaticlyCorrect"], $requestData["gramaticlySound"]);
}