title: How to get the post values in success after completing payment in paypal
body: <p>I follow simple code of PHP for paypal integration</p>
  
  <p>Here is my code,</p>
  
  <pre><code>&lt;form action="&lt;?php echo $paypal_url; ?&gt;" method="post"&gt;
          &lt;input type="hidden" name="business" value="&lt;?php echo $paypal_id; ?&gt;"&gt;
  
          &lt;input type="hidden" name="cmd" value="_xclick"&gt;
  
          &lt;input type="hidden" name="item_name" value="&lt;?php echo $row['name']; ?&gt;"&gt;
          &lt;input type="hidden" name="item_number" value="&lt;?php echo $row['id']; ?&gt;"&gt;
          &lt;input type="hidden" name="amount" value="&lt;?php echo $row['price']; ?&gt;"&gt;
          &lt;input type="hidden" name="currency_code" value="USD"&gt;
  
          &lt;input type='hidden' name='cancel_return' value='http://localhost/paypal_integration_php/cancel.php'&gt;
          &lt;input type='hidden' name='return' value='http://localhost/paypal_integration_php/success.php'&gt;
  
          &lt;input type="image" name="submit" border="0"
          src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online"&gt;
          &lt;img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" &gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>And,
  This is Success.php</p>
  
  <pre><code>&lt;?php
  include 'db_config.php';
  
  $item_number = $_REQUEST['item_number']; 
  $txn_id = $_REQUEST['tx'];
  $payment_gross = $_REQUEST['amount'];
  $currency_code = $_REQUEST['currency_code'];
  $payment_status = $_REQUEST['st'];
  ?&gt;
  </code></pre>
  
  <p>But when returning to my success file I got error like this,
  <a href="https://i.stack.imgur.com/rkdmV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkdmV.png" alt="enter image description here"></a></p>
  
  <p>I'm not clear with the IPN and PDT concepts clearlry..</p>