I'm trying to fix some code on a site that uses PayPal's old shopping cart variables. Please bear with me, as I am not a developer :)...
One of the things that needs updating is a form that customers can use if they want to add a cart item (& price) themselves for something that isn't listed on the site.
Although this basically kind of works, it sometimes generates gibberish:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="merchant@invalid.com"> <input type="hidden" name="item_name" value="Add_Item"> <span class="style1">Item Description:</span><input name="item_name" type="text" value="" size="42" maxlength="70"><span class="style1">Amount: $</span><input name="amount" type="text" value="" size="4" maxlength="7"><input type="submit" value="Submit"><p></form>
I realize that this code is outdated, but I'm not sure what to replace it with.
Any suggestions?