2010-08-05 52 views
0

我有兩個表單,但第二個表單根本沒有發佈。除了提交之外,一切正常。我可以有兩種形式嗎?多個表單問題

<form action="getRates.php" name="rates" method="post" onSubmit="popupform(this, 'join')"> 
          <table style="width: 216px"> 
          <tr> 
           <td style="width: 115px; height: 49px;"><span class="style16">Weight</span><br/> 
            <input type="text" id="weight" name="weight" size="10" maxlength="4"/> 
            <input type="hidden" id="weightOne" name ="weightOne"> 
            <input type="hidden" id="weightTwo" name ="weightTwo"> 
            <input type="hidden" id="weightThree" name="weightThree"> 
            <input type="hidden" id="weightFour" name="weightFour"> 
           </td> 
           <td align="right" style="width: 68px; height: 49px;" valign="top"><span class="style16">Zip Code</span><br/> 
            <input type="text" id="zip" name="zip" size="10" maxlength="5"/> 
           </td> 
          </tr> 
          <tr> 
           <td style="width: 115px"> 
           <input name="submit" type="submit" value="Door Hanger Rates" style="width: 138px" /> 
           </td> 
          </tr> 
          </table> 
          </form> 
         <form action="getBusinessRates.php" name="businessRates" method="post" onSubmit="popupform(this, 'join')"> 
          <table style="width: 216px"> 
          <tr> 
           <td style="width: 115px; height: 49px;"><span class="style16">Weight</span><br/> 
            <input type="text" id="businessWeight" name="businessWeight" size="10" maxlength="4" /> 
           </td> 
           <td align="right" style="width: 68px; height: 49px;" valign="top"><span class="style16">Zip Code</span><br/> 
            <input type="text" id="businessZip" name="businessZip" size="10" maxlength="5" /> 
           </td> 
          </tr> 
          <tr> 
           <td style="width: 115px"> 
           <input name="businessSubmit" type="submit" value="Business Card Rates" style="width: 138px" /> 
           </td> 
          </tr> 
          </table> 
         </form> 
+0

你真的不應該在窗體內嵌套窗體嗎? – spinon 2010-08-05 15:46:38

+0

他不是,第一個是第二個

? – Gareth 2010-08-05 15:57:26

回答

1

您的代碼可用,you can check it out here。這可能是一些其他問題。

+0

這很奇怪。第二個提交按鈕在我的頁面上根本不工作 – shinjuo 2010-08-05 15:51:20

+0

DOCTYPE可能也是可能的問題,但我不是100%確定。檢查看看你在用什麼。 – Sarfraz 2010-08-05 15:55:36

+0

這個? – shinjuo 2010-08-05 16:10:52