title: Passing custom variables to paypal IPN
body: <p>I am trying to pass custom variables to paypal IPN. I can manage to pass one variable. But i don't know how to pass multiple variables.</p>
  
  <p>My Process is something like this</p>
  
  <ol>
  <li>User fill up the form</li>
  <li>They click button and it goes to paypal</li>
  <li>They paid, IPN send me back the information and that ipn.php added variables that passed to the database.</li>
  </ol>
  
  <p>My custom variables are</p>
  
  <ol>
  <li>total lines (whenever they write, i count the lines)</li>
  <li>message (their message that they wrote)</li>
  <li>advertisement id </li>
  </ol>
  
  <p>But for now, I can only pass one variable like this</p>
  
  <p><strong>form.php</strong></p>
  
  <pre><code>&lt;input name="custom" type="hidden" id="custom" value="{$line_count}"&gt;
  
  $_SESSION['line_count'] = $_POST['lines_txt'];
  </code></pre>
  
  <p><strong>ipn.php</strong></p>
  
  <pre><code>$sql="INSERT INTO `form`(`totalline`) VALUES ('" .$_POST['custom']. "');";
  </code></pre>