Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding buy it now and add to cart button with only 1 drop down
    text
    copied!<p>I want to add a buy it now button and add to cart button on the same form with only 1 drop down menu. At present I have 2 drop down menus which are exactly the same if I want to have the buy it now and add to cart button.</p> <p>So basically I want to use only 1 drop down menu for the buy it now and add to cart button which link into both buttons.</p> <p>Here is the html for buy it now button only. </p> <pre><code>&lt;form id="form_35" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self" style="margin:0;position:absolute;left:492px;top:112px;width:199px;height:68px; /*MainDivStyle*/" __AddCode="here"&gt; &lt;!--MainDivStart--&gt; &lt;input type="hidden" name="bn" value="Serif.WebPlus"&gt; &lt;input type="hidden" name="cmd" value="_xclick"&gt; &lt;input type="hidden" name="business" value="info@mysite.com"&gt; &lt;input type="hidden" name="item_name" value="Polo Shirt"&gt; &lt;input type="hidden" name="currency_code" value="GBP"&gt; &lt;input type="hidden" name="amount" value="20.00"&gt; &lt;input type="hidden" name="weight" value="0.18"&gt; &lt;input type="hidden" name="weight_unit" value="kgs"&gt; &lt;input type="hidden" name="quantity" value="1"&gt; &lt;input type="hidden" name="undefined_quantity" value="1"&gt; &lt;input type="hidden" name="no_shipping" value="0"&gt; &lt;input type="hidden" name="cn" value="Special Instructions"&gt; &lt;input type="hidden" name="no_note" value="0"&gt; &lt;input type="hidden" name="return" &gt; &lt;input type="hidden" name="on0" value="Colour"&gt; &lt;!-- Combo Box combo_30 --&gt; &lt;!--Preamble--&gt; &lt;select name="os0" size="1" style="position:absolute; left:8px; top:8px; /*Tag Style*/" __AddCode="here"&gt; &lt;option value="Black" __AddCode="here"&gt;Black&lt;/option&gt; &lt;option value="White" __AddCode="here"&gt;White&lt;/option&gt; &lt;/select&gt; &lt;!--Postamble--&gt; &lt;!-- Button btn_29 --&gt; &lt;!--Preamble--&gt; &lt;div style="position:absolute;left:75px;top:2px;width:116px;height:28px;"&gt;&lt;button type="submit" id="btn_29" class="Button4" style="width:116px;height:28px;"&gt;&lt;span&gt;Buy&amp;nbsp;Now&lt;/span&gt;&lt;/button&gt;&lt;/div&gt; &lt;!--Postamble--&gt; &lt;/form&gt; &lt;!--Postamble--&gt; &lt;!--MainDivEnd--&gt; &lt;/div&gt; </code></pre> <p>ADD TO CART FROM:</p> <pre><code>&lt;form id="form_36" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self" style="margin:0;position:absolute;left:647px;top:957px;width:271px;height:44px; /*MainDivStyle*/" __AddCode="here"&gt; &lt;!--MainDivStart--&gt; &lt;input type="hidden" name="bn" value="Serif.WebPlus"&gt; &lt;input type="hidden" name="cmd" value="_cart"&gt; &lt;input type="hidden" name="business" value="info@mysite.com"&gt; &lt;input type="hidden" name="item_name" value="Polo Shirt"&gt; &lt;input type="hidden" name="currency_code" value="GBP"&gt; &lt;input type="hidden" name="amount" value="20.00"&gt; &lt;input type="hidden" name="weight" value="0.18"&gt; &lt;input type="hidden" name="weight_unit" value="kgs"&gt; &lt;input type="hidden" name="add" value="1"&gt; &lt;input type="hidden" name="quantity" value="1"&gt; &lt;input type="hidden" name="no_shipping" value="0"&gt; &lt;input type="hidden" name="no_note" value="1"&gt; &lt;input type="hidden" name="on0" value="Colour"&gt; &lt;!-- Combo Box combo_31 --&gt; &lt;!--Preamble--&gt; &lt;select name="os0" size="1" style="position:absolute; left:8px; top:8px; /*Tag Style*/" __AddCode="here"&gt; &lt;option value="Black" __AddCode="here"&gt;Black&lt;/option&gt; &lt;option value="White" __AddCode="here"&gt;White&lt;/option&gt; &lt;/select&gt; &lt;!--Postamble--&gt; &lt;!-- Button btn_24 --&gt; &lt;!--Preamble--&gt; &lt;div style="position:absolute;left:75px;top:0px;width:188px;height:36px;"&gt;&lt;button type="submit" id="btn_24" class="Button5" style="width:188px;height:36px;"&gt;&lt;span&gt;Add&amp;nbsp;to&amp;nbsp;Cart&lt;/span&gt;&lt;/button&gt;&lt;/div&gt; &lt;!--Postamble--&gt; &lt;/form&gt; </code></pre> <p>Hopefully the picture will give more insight into what I would like to do.</p> <p><a href="http://img849.imageshack.us/img849/3108/buttonvb.jpg" rel="nofollow">http://img849.imageshack.us/img849/3108/buttonvb.jpg</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload