1、html
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method="get" action="world"> 名称: <input type="text" name="name"><br> 我喜欢自行车: <input type="checkbox" name="like" value="Bike"><br> 我喜欢汽车: <input type="checkbox" name="like" value="Car"><br> <button>发出 GET 请求</button> </form><br><br> <form method="post" action="world"> 名称: <input type="text" name="name"><br> 我喜欢自行车: <input type="checkbox" name="like" value="Bike"><br> 我喜欢汽车: <input type="checkbox" name="like" value="Car"><br> <button>发出 POST 请求</button> </form> </body> </html>