[color=red]index.html[/color]
<form action=second.jsp method=post>
<input type="hidden" name="add" value="show me the money!!!!">
Here is a hidden element.<p>
<input type=submit>
<input type=reset>
</form>
[color=red]second.jsp[/color]
<%@ page contentType="text/html;charset=gbk"%>
<h1>输入内容为:<%=request.getParameter("add")%></h1>
<form action=second.jsp method=post>
<input type="hidden" name="add" value="show me the money!!!!">
Here is a hidden element.<p>
<input type=submit>
<input type=reset>
</form>
[color=red]second.jsp[/color]
<%@ page contentType="text/html;charset=gbk"%>
<h1>输入内容为:<%=request.getParameter("add")%></h1>
本文通过一个简单的HTML表单提交示例介绍了如何使用隐藏字段并在后端JSP页面中获取并显示这些数据。该示例展示了基本的前端表单元素及后端处理流程。
812

被折叠的 条评论
为什么被折叠?



