2012-03-08 107 views
0

無論何時我在此表單上提交貝寶或信用卡提交,它總是進入AlertPay結帳頁面。這是爲什麼?我試圖給出多個結帳和付款選項,以便買方可以使用他們擁有的東西,如果他們沒有其他選項的話。這是我的代碼。提交不適用於此表格

<form action="http://c.uhelios.com/alert_process.php" method="POST" id="paypal-payment-form"> 
     <input type='hidden' name='stripePackage' value='' id='stripePackage_id_pp' /> 
     <input type='hidden' name='stripeName' value='' id='stripeName_id_pp' /> 
     <input type='hidden' name='stripeEmail' value='' id='stripeEmail_id_pp' /> 
     <input type='hidden' name='stripeUDID' value='' id='stripeUDID_id_pp' /> 
<form action="http://c.uhelios.com/paypal_process.php" method="POST" id="paypal-paypal-payment-form"> 
     <input type='hidden' name='stripePackage' value='' id='stripePackage_id_pp_' /> 
     <input type='hidden' name='stripeName' value='' id='stripeName_id_pp_' /> 
     <input type='hidden' name='stripeEmail' value='' id='stripeEmail_id_pp_' /> 
     <input type='hidden' name='stripeUDID' value='' id='stripeUDID_id_pp_' /> 
<!-- Presets --> 
<div id="errors" style="color:#C00; text-align:center;">Errors: None</div> 
<form id="store-form-fields" action="" method="post"> 
<p> 
<span class="input-container"> 
<input type="text" name="Name" id="fullname_id" value="Name" class="required" tabindex="1" /> 
</span> 
<span class="input-container"> 
<input type="text" name="E-mail" id="email_field" value="E-mail Address" class="require email」 tabindex="2" /> 
</span> 
<span class="input-container"> 
<input type="text" name="UDID" id="udid_field" value="UDID" class="" tabindex="3" /> 
</span></p> 
<p> <span class="input-container1"> <select id="package_list"> 
<option value="Siri Server" selected="selected">Siri Server $15.00 USD</option> 
</select> </span> 
<span class="input-container1"> <select name="device"> 
    <option value="iPhone (3G, 4, 4S)">iPhone (3G, 3GS, 4, 4S) </option> 
    <option value="iPad (2)">iPad/iPad 2 </option> 
    <option value="iPod Touch (2G, 3G, 4G)">iPod Touch (2G, 3G, 4G) </option> 
</select> </span> 

</p>        
<p> 
<input name="message-submit" id="paypal-submit" type="submit" onclick="verify3();" value="" tabindex="4" /> 
</p> 
<p> 
<input name="message-submit" id="alertpay-submit" type="submit" onclick="verify2();" value="" tabindex="5"/> 
</p> 
<p> 
<input name="message-submit" id="creditcard-submit" type="submit" onclick="verify();" value="" tabindex="6" /> 
</p>          
</form></form> 
+3

就是這樣,比在SO問題中所屬的_way_更多的代碼。如何將它修剪成[SSCCE](http://sscce.org)? – 2012-03-08 00:50:50

+1

將此修剪至顯示問題的最小可能行數。這不僅會讓別人很容易回答,您可能會自己找到解決方案。 – nicholaides 2012-03-08 00:53:17

+0

爲什麼你有兩個表單標籤? – 2012-03-08 00:58:12

回答

1

您需要關閉第一個窗體標籤之前的第一個。

+0

當我將代碼添加到每個表單的末尾時,它只是在我提交時刷新頁面。 – user1255998 2012-03-08 01:02:44

+0

我明白你想要完成什麼。您嘗試以多種形式分享相同的輸入。這個問題應該用於你然後:http://stackoverflow.com/questions/1692564/two-forms-share-same-input – t0nyh0 2012-03-08 01:09:50

+0

修復它!謝謝你的幫助。 – user1255998 2012-03-08 01:32:04