一个form里可以有两个提交按钮,分别对应两个hidden值吗? submit本身也是一个值可以将submit的name设为相同,通过它来判断if($submit=="删除"){.....}else{........} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用Button,传参数.<form name="form1"><input type="button" value="删除" onclick="handleThis(0)"><input type="button" value="移动" onclick="handleThis(1)"><input type="hidden" value="" name="act"></form><script>function handleThis(n){ if(n == 0) form1.act.value = "del" else form1.act.value = "move" form1.submit();}</script> 一个解决办法 把submit改称button<td width="80"> <input type="button" value="删除" name="delete" onclick="" /> onclick 调用 javascript 的delete函数,在delete函数中指名action这个问题应该数据一个表单多个提交按钮的问题,google上面有很多的答案http://www.youyongming.cn/blog/article.asp?id=167仅供参考 不一定要hidden,提交的时候用js处理,在函数中赋值~ submit会让整个页面都提交,不如button! 关于Adodb 谁能crul获取阿里巴巴页面 大家快来帮我看看这是怎么回事 查询语句 小妹请教PHP学习思想疑问! Zend PHPChina厂商权威认证 phpMyAdmin配置 有个小问题!向各位请教!! 联众军旗管理程序,喜欢军旗的进来看看,来者有分(不下军旗者免来) 哪位收藏了這文章:PHP安装、配置手册,http://www.csdn.net/Expert/TopicView1.asp?id=1008822 关于图片格式的问题 验证码不可用
<form name="form1">
<input type="button" value="删除" onclick="handleThis(0)">
<input type="button" value="移动" onclick="handleThis(1)">
<input type="hidden" value="" name="act">
</form>
<script>
function handleThis(n)
{
if(n == 0) form1.act.value = "del"
else form1.act.value = "move"
form1.submit();
}
</script>
<td width="80"> <input type="button" value="删除" name="delete" onclick="" />
onclick 调用 javascript 的delete函数,在delete函数中指名action这个问题应该数据一个表单多个提交按钮的问题,google上面有很多的答案
http://www.youyongming.cn/blog/article.asp?id=167仅供参考