In HTML, as mentionned, forms only accept sending via GET or POST. To send data with the method PUT, You can do it in AJAX (https://api.jquery.com/jquery.ajax/ with JQuery). Unfortunately, you will most probably have to do some work with the page that is receiving the form as you will probably want to return XML or JSON instead of HTML.
Here below a very basic example just to show is at work. You should see the request method (PUT) in your Javascript console.
<?php
if ($_SERVER['REQUEST_METHOD'] == 'PUT') {
echo $_SERVER['REQUEST_METHOD'];
}
else {
?>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script>
$(function() {
$.ajax(
{
url: '/test.php',
method: 'put',
success: function(data) {
console.log(data);
}
}
);
})
</script>
<?php } ?>