一个FORM,两个图片按钮? …………给两个按钮设定不同的onclick或者把删除的那个作为一个普通的图片链接,指向删除处理页面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 将两个按钮带不同的参数呀,(如:一个带add,一个带del),提交的时候检测一下子就可以呀! <FORM METHOD=POST ACTION="" name=form1><INPUT TYPE="submit" name="b1" value="ok1" onclick="f1()"><INPUT TYPE="submit" name="b2" value="ok2" onclick="f2()"></FORM><script>function f1(){ ....... //提交alert("提交成功")}function f2(){........ //删除alert("删除成功")}</script> <?php if ($Submit) { echo "Submit"; }; if ($a) { echo "a"; };?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><form name="form1" method="post" action="ls.php"> <input type="text" name="aa"> <input name="Submit" type="image" src="web/index/images/all.gif" width="61" height="20" border="0"> <input name="a" type="image" id="a" src="web/index/images/close.gif" width="95" height="20" border="0"></form></body></html> 求代码,菜鸟入门篇,,不堪感激高手,,在线等 sphinx查询的索引问题 求救!正则 如何提取 table 块 CVS的问题 弱弱的问:装了appache后不能访问http://localhost PHP中文件上传时的判断用户是否选择文件的问题 windows XP的机器下用header()函数写Cookies为什么只能写入最后一条? 谁帮我加注释 我看不懂 给解释下 关于日期的问题,在线等 mysql安装在Windows下,如何关闭远程连接(3306端口) 初学php的几个小问题 怎么取得当前时间
<INPUT TYPE="submit" name="b1" value="ok1" onclick="f1()">
<INPUT TYPE="submit" name="b2" value="ok2" onclick="f2()">
</FORM>
<script>
function f1()
{
....... //提交
alert("提交成功")
}
function f2()
{
........ //删除
alert("删除成功")
}
</script>
if ($Submit)
{
echo "Submit";
};
if ($a)
{
echo "a";
};
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="ls.php">
<input type="text" name="aa">
<input name="Submit" type="image" src="web/index/images/all.gif" width="61" height="20" border="0">
<input name="a" type="image" id="a" src="web/index/images/close.gif" width="95" height="20" border="0">
</form>
</body>
</html>