0
<table width=100% cellspacing=0 cellpadding=0 class="form_table">

<form name="suggestion_box" action="suggestion_box.php" method=post>
<input type="hidden" name="form_submit" value="1">
<tr>
<td width=40% align=right valign=top class="form_label_cell">
<b class="form_label">
First Name<br>
</b>
</td>
</table>
<br>
<input type="image" src="button_submit.gif" alt="Submit" class="input_gfx">
<input type="hidden" name="form_submit" value="1">
<br>
</form>
</table>

这是我的表单,我不知道为什么它不适用于 Firefox,你能帮我吗?自几周前以来,我一直在阅读数百个答案,但我无法让它发挥作用。

4

3 回答 3

2

1)你不能像那样把你的表格放在表格里。

2) 您将关闭您的表 ( </table>) 两次。

3)你从来没有关闭你的行(</tr>)。

试试这个简化的代码:

<form name="suggestion_box" action="suggestion_box.php" method=post>

   <table width="100%" cellspacing="0" cellpadding="0" class="form_table">

      <tr>
         <td>
            <input type="hidden" name="form_submit" value="1">
         </td>
      </tr>

      <tr>
         <td>
            <b class="form_label">
               First Name
            </b>
         </td>
      </tr>

      <tr>
         <td>
            <input type="submit" src="button_submit.gif" alt="Submit" class="input_gfx">
         </td>
      </tr>

   </table>

</form>
于 2012-01-29T05:58:16.723 回答
0

您必须为图像输入字段指定名称。

<input type="image" name="yourimage" src="button_submit.gif" alt="Submit" class="input_gfx">

您可以使用 POST 变量 yourimage.x / yourimage.y(或 PHP yourimage_x, yourimage_y)访问 x/y 值。

于 2012-01-28T16:43:38.977 回答
-1

我遇到了没有 id 的表单和输入的问题,尝试为表单和表单元素提供 id 并将 type="submit" 添加到您的提交按钮。

于 2012-01-28T16:45:46.090 回答