The following files exists in this folder. Click to view.
webbutv3/word-app/api/scentence/
verify.php
11 lines ASCII Windows (CRLF)
<?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($jsonData, true);
verify_scentence($requestData["scentenceId"], $requestData["gramaticlyCorrect"], $requestData["gramaticlySound"]);
}