Dreamweaver CS5 (Mac) and Paypal button code changes on copy/paste
For a long time I have had an issue where I would change my website around a bit (retail site with hundreds of PayPal add to cart buttons) and they would not work after moving them with a copy/paste.
Tonight I decided to see if I could find out why and I see why they don't work, I just have no idea why it's changing the code or how to handle it properly to prevent the issue.
Here is an example of a working button:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="tmorris9@pacbell.net" />
<input type="hidden" name="item_name" value="Micro-Mesh sanding pad assortment" />
<input type="hidden" name="return" value="http://epoxyjewelry.com/confirm.html" />
<input type="hidden" name="cancel_return" value="http://epoxyjewelry.com" />
<input type="hidden" name="amount" value="9.55" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="lc" value="US" />
<input type="image" src="https://www.paypal.com/images/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<input type="hidden" name="add" value="1" />
</form>
And here is the same button after a copy and paste to a new location on page (also happens with a cut and paste):
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd2" value="_cart" />
<input type="hidden" name="business2" value="tmorris9@pacbell.net" />
<input type="hidden" name="item_name2" value="Micro-Mesh sanding pad assortment" />
<input type="hidden" name="return2" value="http://epoxyjewelry.com/confirm.html" />
<input type="hidden" name="cancel_return2" value="http://epoxyjewelry.com" />
<input type="hidden" name="amount2" value="9.55" />
<input type="hidden" name="currency_code2" value="USD" />
<input type="hidden" name="lc2" value="US" />
<input type="image" src="https://www.paypal.com/images/x-click-but22.gif" border="0" name="submit2" alt="Make payments with PayPal - it's fast, free and secure!" />
<input type="hidden" name="add2" value="1" />
</form>
You can see the #2 has been added to lots of the commands and this makes the button not work.
cmd becomes cmd2
business becomes business2
It reminds me of downloading something a few times they rename as in program, program1, program2 so I am assuming it's something to do with it being a "copy" but I need it to NOT do this or find some other method to prevent it. Sometimes I change lots of items on a page and rearrange them then for weeks I get no orders for a particular product until a customer tells me the button won't work.
Any ideas?
