问题
I'm (very) new to HTML and development and I would like to first write a HTML form that lets someone enter their name and web service that outputs a welcome message with their name using spark. By doing this I'm hoping to get an understanding of the GET method and how it all links together.
I have written the HTML but how do I write the java to update the HTML page with a welcome message using the person's name?
<!DOCTYPE html>
<html>
<head>
<title> Leanring how to use HTML and web services </title>
</head>
<body>
<p>This is a web page for learning web serivce get calls</p>
<form method="GET" action="learning.php">
<label for="name">Name</label>
<input type="text" name="name" id="name">
</form>
</body>
</html>
Thanks,
来源:https://stackoverflow.com/questions/61058536/html-form-that-lets-someone-enter-their-name-and-web-service-that-outputs-a-welc