嗯,我有这个代码,如果我删除表内容,按钮工作正常,但当我在代码中插入它时,按钮根本不工作!请帮忙!
<body>
<img style="POSITION: absolute; LEFT: 17px; Z-INDEX: 100; TOP: 17px" border="0" src="gogo.png" width="174" height="59"/> <img style="POSITION: absolute; LEFT: 8px; Z-INDEX: 100; TOP: 482px" border="0" src="kup.jpg" width="937" height="168"/><table cellpadding="0" width="456" border="0">
<tbody>
<form name="Register" method="post" action="register_details.php">
<tr bgcolor="#0000ff">
<td colspan="4">
<div align="left">
<font face="Arial, Helvetica, sans-serif">
<font color="#ffffff" size="2"></font>
</font>
</div>
<strong>
<font color="#ffffff" size="3" face="Arial,Helvetica"> Potwierdź informacje</font> <font color="#ffffff">:</font></strong> </td>
</tr>
<tr>
<td width="132">
<div align="left">
<font face="Arial, Helvetica, sans-serif">
<font size="2"></font>
</font>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif"> </font> </td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Imię :*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="first_name" maxlength="30" size="35" name="first_name"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Nazwisko :*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="last_name" maxlength="30" size="35" name="last_name"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<font color="#ffffff" size="2" face="Arial,Helvetica"> Nazwa firmy:</font> </div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="company" maxlength="30" size="35" name="company"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Adres:*</font> </strong>
</div>
</font>
</strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="address" maxlength="50" size="35" name="address"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Miasto :*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="city" maxlength="25" size="35" name="city"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff" height="19">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Kraj:*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<select id="country" size="1" name="country"> <option value="usa">Wybierz swoj kraj</option> <option value="Polska">Polska</option> <option value="Niemcy">Niemcy</option> <option value="Francja">Francja</option> <option value="Wlochy">Wlochy</option> <option value=" ">-----------------------</option> <option value="Zjednoczone Królestwo">Zjednoczone Krolestwo</option></select> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff" height="22">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Prowincja:*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="other_state" maxlength="15" size="8" name="other_state"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Kod pocztowy:*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="zip" maxlength="20" size="10" name="zip"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> Numer telefonu:*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">( <input id="phone_prefix" maxlength="3" size="5" name="phone_prefix"/> ) <input id="phone_number" maxlength="10" name="phone_number"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<font color="#ffffff" size="2" face="Arial,Helvetica"> Fax:</font> </div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">( <input id="fax_prefix" maxlength="3" size="5" name="fax_prefix"/> ) <input id="fax_number" maxlength="10" name="fax_number"/> </font>
</td>
</tr>
<tr>
<td bgcolor="#0000ff">
<div align="left">
<strong>
<font color="#ffffff" size="2" face="Arial,Helvetica"> E-mail:*</font> </strong>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif">
<input id="your_email" maxlength="35" size="35" name="your_email"/> </font>
</td>
</tr>
<tr>
<td>
<div align="left">
<font face="Arial, Helvetica, sans-serif">
<font size="2"></font>
</font>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif"> </font> </td>
</tr>
<tr>
<td>
<div align="left">
<font face="Arial, Helvetica, sans-serif">
<font size="2"></font>
</font>
</div>
</td>
<td colspan="3">
<font size="2" face="Arial, Helvetica, sans-serif"> </font> </td>
</tr>
<tr>
<td>
<div align="left">
<font face="Arial, Helvetica, sans-serif">
<font size="2"></font>
</font>
</div>
</td>
<td>
<div align="center">
<input value="Kup Teraz" type="submit" name="Submit"/> <font size="2" face="Arial, Helvetica, sans-serif"></font></div>
</td>
<td colspan="2"></td>
</tr>
</form>
</tbody>
</table></body>
答案 0 :(得分:10)
您不应在<form>
中打开<tbody>
- 它会破坏<table>
语法。将<form>
代码移到<table>
。