title: Set Form action in wordpress
body: <p>I am creating form for wordpress website. Currently i am getting value on same page successfully with blank <code>action</code>.</p>
  
  <p>Now i need to get form value on <code>data.php</code> page.</p>
  
  <p><strong>Form</strong></p>
  
  <pre><code>&lt;form id="post-container" action="&lt;?php echo home_url( '/' ); ?&gt;data.php" method="POST"&gt;
     &lt;input name="aa" value="post_id"&gt; ........ &lt;/input&gt;
     &lt;input name="ab" value="post_id"&gt; ........ &lt;/input&gt;
   &lt;input type="submit" name="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>data.php</strong></p>
  
  <pre><code>&lt;?php 
  if (isset ( $_POST['aa'] )){
    $ID = $_POST['aa'] ;
    echo get_post_meta( $ID, 'brand', true );
  }
  
  if (isset ( $_POST['ab'] )){
    $ID = $_POST['ab'] ;
    echo get_post_meta( $ID, 'brand', true );
  }
  ?&gt;
  </code></pre>
  
  <p>After submit </p>
  
  <p>url = <code>http://localhost/mobile/data.php</code> which is correct.</p>
  
  <p>but it display index.php which is wrong and also not print any value.</p>
  
  <p><strong>How to submit form to data.php and print value?</strong></p>