html

<!DOCTYPE html>
<html>
	<head>
        <title>表单</title>
		<meta charset="utf-8">
    </head>
	<body>
		<form  action="http://localhost:9080/html5/html5.jsp"   method="post"  ></form>
	     姓名:<input type="text" name="names"  form="myform"/>
               <input type="submit"  value="提交" name="sub"  form="myform"/>
	</body>
</html>

 html5.jsp

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
提交成功
</body>
</html>

  效果:
HTML5 表单提交实例

 

 

 

 

  2017-09-12  12:56:11

相关文章:

  • 2021-12-27
  • 2021-11-29
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-12-31
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2021-09-27
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案