diff --git a/ati-ti/rest.php b/ati-ti/rest.php index 4551aed..9f8fcfd 100644 --- a/ati-ti/rest.php +++ b/ati-ti/rest.php @@ -48,10 +48,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") $id = $_POST['idQuoteChange']; $author = $_POST['authorQuoteChange']; $quote = $_POST['quoteChange']; + $content = "id=" . $id . "&author=" . $author . ""e=" . $quote; $result = new HttpRequest("http://lecturer.ukdw.ac.id/yuan/labs/quotes/", HttpRequest::METH_PUT); - $result->setPutData($id); - $result->setPutData($author); - $result->setPutData($quote); + $result->setPutData($content); $put = 1; }