how to send values to paypal using php
<p>In the below code  'AddToCart' button is created by using Paypal. but problem is when i click on that button title and price values are not added to Paypal Shopping Cart.</p>

<pre><code>&lt;?php
             $xml= new DOMDocument();
             $xml-&gt;load("books.xml");
             $book = $xml-&gt;getElementsByTagName("book"); 
             echo "&lt;table border=1&gt;&lt;tr&gt;&lt;th&gt;DVD Title&lt;/th&gt;&lt;th&gt;DVD Price&lt;/th&gt;&lt;th&gt;AddToCart&lt;/th&gt;&lt;/tr&gt;";   
              foreach($book as $node) 
             { 
            $title = $node-&gt;getElementsByTagName("title");
            $title = $title-&gt;item(0)-&gt;nodeValue;
            $price = $node-&gt;getElementsByTagName("price");
            $price = $price-&gt;item(0)-&gt;nodeValue;
            echo "&lt;tr&gt;&lt;td&gt;{$title}&lt;/td&gt;&lt;td&gt;{$price}&lt;/td&gt;&lt;td&gt;
            &lt;form target='paypal' action='https://www.paypal.com/cgi-bin/webscr' method='post'&gt;
            &lt;input type='hidden' name='cmd' value='_s-xclick'&gt;
            &lt;input type='image' src='https://www.paypalobjects.com/en_AU/i/btn/btn_cart_LG.gif' border='0' name='submit' alt='PayPal — The safer, easier way to pay online.'&gt;
            &lt;img alt='Nothing To See' border='0' src='https://www.paypalobjects.com/en_AU/i/scr/pixel.gif' width='1' height='1'&gt;
            &lt;/form&gt;&lt;/td&gt;&lt;/tr&gt;";
            } 
           echo "&lt;/table&gt;"; 
</code></pre>
