2010-08-05 2 views
0

두 가지 양식이 차례로 나옵니다. 그러나 두 번째 양식은 전혀 게시하지 않습니다. 제출을 제외하고는 모두 잘 작동합니다. 이런 식으로 2 가지를 만들 수 있습니까?여러 양식 문제

<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

+0

그는 아니야, 첫 번째은 두 번째 앞에있다

? – Gareth

답변

1

동일한 코드가 작동하고 있습니다 (you can check it out here). 아마도 다른 문제 일 수도 있습니다.

+0

이상합니다. 두 번째 제출 버튼이 내 페이지에서 전혀 작동하지 않습니다 – shinjuo

+0

DOCTYPE도 가능한 문제 일 수 있지만 100 % 확실하지는 않습니다. 사용중인 것을 확인하십시오. – Sarfraz

+0

shinjuo