title: Can't pass through POST data when redirected through paypal
body: <p>I've set up a site where customers enter their information (name, address, etc.) and want them to be able to pay using a credit card via paypal. That works well. I've set up Paypal instant payment notification and set it up through paypal that the customer gets redirected to my page. It all works properly except that the data isn't being passed along and saved to my SQL database. I know that the code that inserts the data into the database works properly. The problem is that the data isn't being passed to that page since the paypal pages are in between.</p>
  
  <p>Here is the php I have</p>
  
  <pre><code>if (isset($_POST['child_name'])
      &amp;&amp; isset($_POST['age'])
      &amp;&amp; isset($_POST['hometown'])
      &amp;&amp; isset($_POST['boy_girl'])
      &amp;&amp; isset($_POST['email'])
      &amp;&amp; isset($_POST['first_name'])
      &amp;&amp; isset($_POST['last_name'])
      &amp;&amp; isset($_POST['address1'])
      &amp;&amp; isset($_POST['address2'])
      &amp;&amp; isset($_POST['city'])
      &amp;&amp; isset($_POST['state'])
      &amp;&amp; isset($_POST['zip'])
      &amp;&amp; isset($_POST['country']))  {
          $child_name = $_POST['child_name'];
          $age = $_POST['age'];
          $hometown = $_POST['hometown'];
          $boy_girl = $_POST['boy_girl'];
          $email = $_POST['email'];
          $first_name = $_POST['first_name'];
          $last_name = $_POST['last_name'];
          $address1 = $_POST['address1'];
          $address2 = $_POST['address2'];
          $city = $_POST['city'];
          $state = $_POST['state'];
          $zip = $_POST['zip'];
          $country = $_POST['country'];
  }
  </code></pre>
  
  <p>And here is the HTML</p>
  
  <pre><code>&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
  &lt;input type="hidden" name="cmd" value="_s-xclick"&gt;
  &lt;input type="hidden" name="hosted_button_id" value="NT2YC6LP7SWBE"&gt;
  &lt;input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"&gt;
  &lt;input type="hidden" name="child_name" id="child_name" value ="&lt;? echo $child_name; ?&gt;" maxlength="20"/&gt;
  &lt;input type="hidden" name="age" id="age" value ="&lt;? echo $age; ?&gt;" maxlength="4"/&gt;
  &lt;input type="hidden" name="hometown" id="hometown" value ="&lt;? echo $hometown; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="boy_girl" id="boy_girl" value ="&lt;? echo $boy_girl; ?&gt;" maxlength="4"/&gt;
  &lt;input type="hidden" name="first_name" id="first_name" value ="&lt;? echo $first_name; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="last_name" id="last_name" value ="&lt;? echo $last_name; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="email" id="email" value ="&lt;? echo $email; ?&gt;" maxlength="64"/&gt;
  &lt;input type="hidden" name="address1" id="address1" value ="&lt;? echo $address1; ?&gt;" maxlength="64"/&gt;
  &lt;input type="hidden" name="address2" id="address2" value ="&lt;? echo $address2; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="city" id="city" value ="&lt;? echo $city; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="state" id="state" value ="&lt;? echo $state; ?&gt;" maxlength="20"/&gt;
  &lt;input type="hidden" name="zip" id="zip" value ="&lt;? echo $zip; ?&gt;" maxlength="10"/&gt;
  &lt;input type="hidden" name="country" id="country" value ="&lt;? echo $country; ?&gt;" maxlength="32"/&gt;
  &lt;input type="hidden" name="payment_type" id="payment_type" value ="paypal" maxlength="6"/&gt;
  &lt;input type="hidden" name="paid" id="paid" value ="yes" maxlength="3"/&gt;
  &lt;input type="hidden" name="mailed" id="mailed" value ="no" maxlength="3"/&gt;
  &lt;img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I just took the form that paypal gave me and added the hidden inputs. This works perfectly on another page but that is because the action attribute leads directly to the page that will insert the data. Here the action sends them to paypal's site and the data never makes it to mine. How do I adjust this?</p>