脚本标记中的表单操作

时间:2013-11-20 07:09:34

标签: javascript php plugins

这是我的代码的一部分。

<form name="frm" method="post" action="">
<script id="template-download" type="text/x-tmpl">
<tr id="imgRow">
    <td>
    <input type="submit" name="copyImage" value="Copy Content" class="copy_content">
    <input type="hidden" name="postAction" value="copyFileContent">
    </td>
    <td colspan="4"></td>
    <td><input type="checkbox" name="checkAll" onClick="toggle(this);"></td>
</tr>
</script>
</form>

此代码适用于相同的操作页面,但是当我设置表格的动作属性时:

<form name="frm" method="post" action="test.php">

再次,它在同一页面工作意味着在提交页面后不会进行操作(test.php)页面。 可能是什么原因?

如果我使用 <script> 标记上方的提交按钮,则其工作方式如下:

<form name="frm" method="post" action="test.php">
<input type="submit" name="copyImage" value="Copy Content" class="copy_content">
<script id="template-download" type="text/x-tmpl">

有什么建议吗?

0 个答案:

没有答案
相关问题