I found this code snippet on a coding website. I'm curious, would you classify this as a POST request or a GET request? The only modification I made was changing the action location to direct to a Java servlet instead of PHP.
<!DOCTYPE html>
<html>
<body>
<form id="myForm" action="/action">
First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br><br>
<input type="button" onclick="myFunction()" value="Submit form">
</form>
<script>
function myFunction() {
document.getElementById("myForm").submit();
}
</script>
</body>
</html>