Now we have a working PUT example
Signed-off-by: Willy Sudiarto Raharjo <willysr@gmail.com>
This commit is contained in:
+2
-3
@@ -48,10 +48,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
|||||||
$id = $_POST['idQuoteChange'];
|
$id = $_POST['idQuoteChange'];
|
||||||
$author = $_POST['authorQuoteChange'];
|
$author = $_POST['authorQuoteChange'];
|
||||||
$quote = $_POST['quoteChange'];
|
$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 = new HttpRequest("http://lecturer.ukdw.ac.id/yuan/labs/quotes/", HttpRequest::METH_PUT);
|
||||||
$result->setPutData($id);
|
$result->setPutData($content);
|
||||||
$result->setPutData($author);
|
|
||||||
$result->setPutData($quote);
|
|
||||||
$put = 1;
|
$put = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user