【发布时间】:2014-07-04 18:51:31
【问题描述】:
我有这个代码
<form action="UMS_delete.php" method="post" onSubmit="return confirm("Are You Sure?");">
<td>
<input type="hidden" value="'.$row['username'].'" name="username">
<input type="submit" value="Delete">
</td>
</form>
我知道这很简单,但它不起作用,我不知道为什么
我也试过提交按钮上的onclick事件
但它总是转到操作页面
有人可以帮忙吗?
【问题讨论】:
-
寻找this?
-
在 onclick 方法中使用
type="button"而不是type="submit"