title: Paypal api, php, form
body: <pre><code>&lt;?php 
  $action=$_REQUEST['action']; 
  if ($action=="")   
  { 
  ?&gt; 
  
  &lt;center&gt;
  &lt;form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
  &lt;input type="hidden" name="cmd" value="_xclick"&gt;
  &lt;input type="hidden" name="business" value="example@example.com"&gt;
  &lt;input type="hidden" name="currency_code" value="AUD"&gt;
  &lt;input type="hidden" name="item_name" value="Donation"&gt;
  &lt;input type="number" name="amount" value="10"&gt;
  &lt;br&gt;
  &lt;input type="image" src="http://www.bgclubfc.org/donate-Now.gif" width="150px"     height="50px" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"&gt;
  &lt;/form&gt;
  &lt;/center&gt;
  
  
      &lt;?php 
      }  
  else                
      { 
      $amount=$_REQUEST['amount']; 
      if (($amount==""))
          { 
          echo "All fields are required, please fill &lt;a href=\"\"&gt;the form&lt;/a&gt; again."; 
          } 
      else{         
          mail("example@example", "donation", $amount); 
          echo "Email sent!"; 
  
  
      } 
      }  
  ?&gt; 
  </code></pre>
  
  <p>Okay here is my code. 
  It is a working paypal donation button. But I want to receive and email when ever a donation is made with the amount that was donated. So when they submit the form or click the donate now button I want to receive an email with what the input was. </p>
  
  <p>Thank you</p>