• Upon adding my custom PayPal button code (4 choice drop down), to my WP site post, if I make any HTML code edits, the drop down button breaks and becomes just 4 choices. These post edits are totally unrelated to the button form, they could be as simple as correcting a typo within the text. I cannot figure out how/why this is happening.
    Here is the before and after code. Any help would be appreciated.

    Original Code (before)
    <form action=”https://www.paypal.com/cgi-bin/webscr&#8221; method=”post” target=”_top”>
    <input type=”hidden” name=”cmd” value=”_s-xclick”>
    <input type=”hidden” name=”hosted_button_id” value=”3VW8JXC433UDY”>
    <table>
    <tr><td><input type=”hidden” name=”on0″ value=”Tourney Entry Options”>Tourney Entry Options</td></tr><tr><td><select name=”os0″>
    <option value=”Entry Fee Only”>Entry Fee Only $26.00 USD</option>
    <option value=”Entry & Gross Skins”>Entry & Gross Skins $36.00 USD</option>
    <option value=”Entry & Net Skins”>Entry & Net Skins $36.00 USD</option>
    <option value=”Entry & Both Skins”>Entry & Both Skins $47.00 USD</option>
    </select> </td></tr>
    </table>
    <input type=”hidden” name=”currency_code” value=”USD”>
    <input type=”image” src=”http://cypresslakesgolfclub.org/wp-content/uploads/2014/04/CLGC-Pay.png&#8221; border=”0″ name=”submit” alt=”PayPal – The safer, easier way to pay online!”>
    <img alt=”” border=”0″ src=”https://www.paypalobjects.com/en_US/i/scr/pixel.gif&#8221; width=”1″ height=”1″>
    </form>

    Post Edit Code (after)

    <form action=”https://www.paypal.com/cgi-bin/webscr&#8221; method=”post” target=”_top”><input name=”cmd” type=”hidden” value=”_s-xclick” />
    <input name=”hosted_button_id” type=”hidden” value=”3VW8JXC433UDY” />
    <table>
    <tbody>
    <tr>
    <td><input name=”on0″ type=”hidden” value=”Tourney Entry Options” />Tourney Entry Options</td>
    </tr>
    <tr>
    <td><select name=”os0″><option value=”Entry Fee Only”>Entry Fee Only $26.00 USD</option></select>
    <select name=”os0″><option value=”Entry & Gross Skins”>Entry & Gross Skins $36.00 USD</option></select>
    <select name=”os0″><option value=”Entry & Net Skins”>Entry & Net Skins $36.00 USD</option></select>
    <select name=”os0″><option value=”Entry & Both Skins”>Entry & Both Skins $47.00 USD</option></select></td>
    </tr>
    </tbody>
    </table>
    <input name=”currency_code” type=”hidden” value=”USD” />
    <input alt=”PayPal – The safer, easier way to pay online!” name=”submit” src=”http://cypresslakesgolfclub.org/wp-content/uploads/2014/04/CLGC-Pay.png&#8221; type=”image” />
    <img src=”https://www.paypalobjects.com/en_US/i/scr/pixel.gif&#8221; alt=”” width=”1″ height=”1″ border=”0″ />

    </form>

Viewing 2 replies - 1 through 2 (of 2 total)
  • just for giggles try removing all spaces between each option tag and see if that fixes it.

    <select name=”os0″><option value=”Entry Fee Only”>Entry Fee Only $26.00 USD</option><option value=”Entry & Gross Skins”>Entry & Gross Skins $36.00 USD</option><option value=”Entry & Net Skins”>Entry & Net Skins $36.00 USD</option><option value=”Entry & Both Skins”>Entry & Both Skins $47.00 USD</option></select>

    Thread Starter snpperhd

    (@snpperhd)

    @pyrate.Ned, thanks for the suggestion, but no change.
    Like I said, I can get it to work fine by just re-adding the original code. It just irks me that I cannot understand why an unrelated HTML code edit breaks the button and actually changes the button’s code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PayPal Drop Down Button Breaks after HTML edit’ is closed to new replies.