The following files exists in this folder. Click to view.
disable-translation.php
get-problem.php
scentence/
scentence.php
submit-problem-result.php
scentence.php
11 lines ASCII Windows (CRLF)
<?php
include "../util/db_connect.php";
include "../util/practice.php";
// create new sentance
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$jsonData = file_get_contents('php://input');
$requestData = json_decode($jsonData, true);
new_scentence($requestData["translationId"], $requestData["scentence"]);
}