PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have been working on passing values to paypal, and I am stuck. Almost all the links work. Just having problems when I have a link like this one. (click on BUY NOW). And here is my script right now.
<?php
$Description = urlencode($a_resultї'Description']);
$Code = urlencode($a_resultї'Code']);
$Price = urlencode($a_resultї'Price']);
$Count = urlencode($a_resultї'Count']);
$Manufacturer = urlencode($a_resultї'Manufacturer']);
?>
<a href="https://www.paypal.com/cart/add=1&business=information@aardvarksafety.com&item_name=<? echo $Description; ?>&item_number=<? echo $Code; ?>&amount=<? echo $Price; ?>" target="_blank" class="nolink">Buy Now</a>
I was told to use urlencode, and I see its working, but I still have problems as you can see. Any ideas?
Yes, I am sure that Paypal's links are working. It works on all products, except those with a / or () in the links. There appears to be no problems with " anymore. Anything inside the () don't show up in paypal. I thought the urlencode was suppose to fix this? Grrr. Fustrating.