Paypal下拉菜单单独渲染

时间:2012-01-19 22:49:02

标签: forms paypal drop-down-menu

我的paypal下拉按钮没有显示为下拉菜单,而是显示为单独的框。

你可以在这里看到:http://www.mattemig.net/store/

下面的代码

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /> <input type="hidden" name="hosted_button_id" value="FUT8A68TBGR9Y" />
<table>
<tbody>
<tr>
<td><input type="hidden" name="on0" value="Size" />Size</td>
</tr>
<tr>
<td><select name="os0"> <option value="3 Link (11&quot;)">3 Link (11") </option> </select> <select name="os0"> <option value="4 Link (11&quot;)">4 Link (11") </option> </select> <select name="os0"> <option value="3 Link (9&quot;)">3 Link (9")</option> </select></td>
</tr>
<tr>
<td><input type="hidden" name="on1" value="Base Color" />Base Color</td>
</tr>
<tr>
<td><select name="os1"> <option value="Hot Pink">Hot Pink </option> </select> <select name="os1"> <option value="Ruby Red">Ruby Red </option> </select> <select name="os1"> <option value="Tangerine">Tangerine </option> </select> <select name="os1"> <option value="Emerald Green">Emerald Green </option> </select> <select name="os1"> <option value="Blue Royal">Blue Royal </option> </select> <select name="os1"> <option value="Pure Purple">Pure Purple </option> </select> <select name="os1"> <option value="Midnight Black">Midnight Black </option> </select></td>
</tr>
</tbody>
</table>
<input type="image" name="submit" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_cart_LG.gif" alt="PayPal - The safer, easier way to pay online!" /> <img src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>

1 个答案:

答案 0 :(得分:1)

您选择的所有选项都会显示在他们自己的select中。将其更改为单个<select>

,例如,'尺寸',来自:

<td><input type="hidden" name="on0" value="Size" />Size</td>
</tr>
<tr>
<td><select name="os0"> <option value="3 Link (11&quot;)">3 Link (11") </option> </select> <select name="os0"> <option value="4 Link (11&quot;)">4 Link (11") </option> </select> <select name="os0"> <option value="3 Link (9&quot;)">3 Link (9")</option> </select></td>

致:

 <td><input type="hidden" name="on0" value="Size" />Size</td>
    </tr>
    <tr>
    <td>
    <select name="os0"> 
    <option value="3 Link (11&quot;)">3 Link (11") </option> 
    <option value="4 Link (11&quot;)">4 Link (11") </option> 
    <option value="3 Link (9&quot;)">3 Link (9")</option>
    </select></td>