title: onClick send 'POST' data to php file and get result
body: <pre><code>&lt;script&gt;
          $(document).ready(function(){
              $("#vE_rebtn").click(function{
              var reverifyEmail = '&lt;?php echo $_SESSION["verifyEmIPv"]; ?&gt;';
              $('#rE_rebtn').hide();
              $('#re_verifyEMAIL-notice').hide();
              $('#rE_resending').show();
              $.ajax({
                  type: 'POST',
                  url: 'data/system/auth.php',
                  data: {verifyEMAIL: reverifyEmail},
                  success: function (data) {
                      console.log(data);
                      $('#verifyEMAIL_notice').hide();
                      $('#re_verifyEMAIL_notice').show();
                  }
              });
              });
          });
  &lt;/script&gt;
  &lt;ul id="verifyEMAIL_notice" class="success-notification"&gt;&lt;li&gt;Email Has been sent, hurry you have only 5 minutes to verify your IP and activate your account.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
  &lt;ul id="re_verifyEMAIL_notice" style="display:none;" class="success-notification"&gt;&lt;li&gt;Email Has been sent, hurry you have only 5 minutes to verify your IP and activate your account.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;&lt;p&gt;Keep in mind. Do not close this window, until you verify yourself.&lt;br /&gt;If time limit exceed you can request for new code from this page.&lt;/p&gt;&lt;br /&gt;
  &lt;div id="vE_rebtn"&gt;Click To Resend Now!&lt;/div&gt;&lt;/h3&gt;   
  &lt;div id="vE_resending" style="display:none;"&gt;Resending.... Please Wait.&lt;/div&gt;&lt;/h3&gt;
  </code></pre>
  
  <p><strong>Above code not working</strong></p>
  
  <blockquote>
    <p>I want to send form data from this page, this page receive form data
    in $_POST variables and I now want if someone click on Resend Code
    then jquery run and send this form data to another php page and get
    result from that page.</p>
  </blockquote>