HTML form that lets someone enter their name and web service that outputs a welcome message [closed]

喜欢而已 提交于 2020-04-07 10:38:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!