title: how can form action and post method together work?
body: <p>Below is my code. If I do not use this link in form action="https://www.paypal.com/cgi-bin/webscr". The form of data inserted successfully in my database. But, when I using this action link. in the database, form data not sending</p>
  
  <p>so, how can form action and post method together work?</p>
  
  <p>Actually Here is what I want to after click submit button, will be successfully title data insert into my database. and then page redirects to the PayPal checkout page. </p>
  
  <pre><code>&lt;?php
  $database_username = 'root';
  $database_password = '';
  $pdo_conn = new PDO( 'mysql:host=localhost;dbname=shipping_pro', $database_username, $database_password );
  
  if($_SERVER['REQUEST_METHOD'] == 'POST' &amp;&amp; isset($_POST['insert'])) {
    $sql = "INSERT INTO posts (title) VALUES (:title)";
    $pdo_statement = $pdo_conn-&gt;prepare( $sql );
    $result = $pdo_statement-&gt;execute( array( 
      ':title'=&gt;$_POST['title']
    ) );
    if (!empty($result) ){
      header('location:index.php');
    }
  }
  ?&gt;
  &lt;form method="POST" action="https://www.paypal.com/cgi-bin/webscr"&gt;
    &lt;input type="text" name="title" placeholder="Title" /&gt;
    &lt;input name="insert" type="submit" value="Add"&gt;
  &lt;/form&gt;
  </code></pre>