Coding Confusion
-
I’m having some trouble with a PayPal code. I enter it into the text as provided on the PayPal site:
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post” target=”_top”>
<input type=”hidden” name=”cmd” value=”_s-xclick”>
<input type=”hidden” name=”hosted_button_id” value=”UBKNCLFFXWHME”>
<table>
<tr><td><input type=”hidden” name=”on0″ value=”Ticket Options”>Ticket Options</td></tr><tr><td><select name=”os0″>
<option value=”Single”>Single $150.00 USD</option>
<option value=”Couple”>Couple $300.00 USD</option>
</select> </td></tr>
</table>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif” 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” width=”1″ height=”1″>
</form>When I press “Update” on WordPress, it changes the code to:
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post” target=”_top”><input name=”cmd” type=”hidden” value=”_s-xclick” />
<input name=”hosted_button_id” type=”hidden” value=”UBKNCLFFXWHME” /></form>
<table>
<tbody>
<tr>
<td><input name=”on0″ type=”hidden” value=”Ticket Options” />Ticket Options</td>
</tr>
<tr>
<td><select name=”os0″>
<option value=”Single”>Single $150.00 USD</option>
<option value=”Couple”>Couple $300.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=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif” type=”image” />
<img src=”https://www.paypalobjects.com/en_US/i/scr/pixel.gif” alt=”” width=”1″ height=”1″ border=”0″ />I can see that the </form> jumps up, and I’m assuming that is why the button is not working properly on the site and that the border=”0″ also moves, but I cannot figure out why it is changing when I update!
Help is appreciated!
-Emily
The topic ‘Coding Confusion’ is closed to new replies.