社区
基础编程
帖子详情
表单提交问题
ForrestWangChina1
2005-11-28 05:28:46
一个表单里有俩个以上的button,假如是button1,button2,...,我想在按button1就提交,其他的暂时不管.我该怎么做,才能让点button1提交.
还有,表单提交之后,把显示结果就在当前页的下方显示,我又该怎么做?
...全文
87
4
打赏
收藏
表单提交问题
一个表单里有俩个以上的button,假如是button1,button2,...,我想在按button1就提交,其他的暂时不管.我该怎么做,才能让点button1提交. 还有,表单提交之后,把显示结果就在当前页的下方显示,我又该怎么做?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
afei0220
2005-11-29
打赏
举报
回复
安全一点的话就:
<body>
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='text' name='test2'>
<input type='button' onclick='document.form.submit()'>
<input type="button">
</form>
<?
if(isset$_POST['test']) { //add this to check
echo $_POST['test'];
echo $_POST['test2'];
}
?>
</body>
Zi_Yuan
2005-11-28
打赏
举报
回复
<body>
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='button' onclick='document.form.submit()'>
<input type="button">
</form>
<?
echo $_POST['test'];
?>
</body>
Zi_Yuan
2005-11-28
打赏
举报
回复
<body>
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='submit' onclick='document.form.submit()'>
</form>
<?
echo $_POST['test'];
?>
</body>
zalvsa
2005-11-28
打赏
举报
回复
<form>
<input type='text' name='test'>
<input type='button' onclick='this.form.submit()'>
</form>
<?
echo $test;
?>
jquery-form.js 源码
异步提交表单和上传文件jquery-form.js
Layui
表单提交
问题
1、Layui的form
表单提交
问题
在提交表单数据时,提交按钮为 submit 类型,以layui为js框架时,会重复提交表单数据。如何解觉这一
问题
?以下给出我认为便捷的三种方法: 设置button的type=button,否则默认...
Vue 使用form
表单提交
问题
背景:公司的项目对接了一家第三方的支付机构,使用云闪付web移动端支付,对方要求form
表单提交
信息 1、一开始,使用接口使用Axios请求设置form格式提交 import axios from "axios"; axios.post( success.data...
Vue中form
表单提交
问题
关于input组件回车后,默认提交form表单 出现的
问题
: <div class="searchArea"> <form action="###" class="searchForm"> <input v-model="keyword" id="autocomplete" class="input-error ...
layui的form
表单提交
问题
layui表单
基础编程
21,891
社区成员
140,342
社区内容
发帖
与我相关
我的任务
基础编程
从PHP安装配置,PHP入门,PHP基础到PHP应用
复制链接
扫一扫
分享
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章