您的位置:首页 > Web前端 > HTML

HTML表单提交

2016-07-16 09:59 344 查看

HTML表单提交

<form action="jspStaticPage.jsp" method="post">
width: <input type="text" name="width" size="25"><br/>
length:<input type="text" name="height" size="25"><br/>
<input type="submit"    value="submit">
<form action="jspStaticPage.jsp" method="post">


action 动作传递的页面

method 动作传递方式 get和 post 区别不明

提交按钮 submit 当type= button时无法提交

<form action="jspStaticPage.jsp" method="post" >
width: <input type="text" name="width" size="25"><br/>
length:<input type="text" name="height" size="25"><br/>
<input type="button"    value="submit" onclick="this.form.submit()">
</form>


效果同上
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  html