title: How to get $_POST value after Javascript POST in PHP?
body: <p>Hello there i want to ask how i can get print the $POST value from HTML from after Javascript post?</p>
  
  <p>Here is my HTML submit forms:<br><br></p>
  
  <pre><code>&lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="./comments.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;div id="addCommentContainer"&gt;
  &lt;form class="add-comment-form" id="addCommentForm3" method="post" action=""&gt;
  &lt;input type="hidden" value="3" name="comentonpost" id="comentonpost" /&gt;
  &lt;textarea class="commentinput" name="body" id="body" cols="20" rows="5"&gt;&lt;/textarea&gt;
  &lt;input type="button" class="add-comment-submit" value="Submit" /&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;div id="addCommentContainer"&gt;
  &lt;form class="add-comment-form" id="addCommentForm3" method="post" action=""&gt;
  &lt;input type="hidden" value="3" name="comentonpost" id="comentonpost" /&gt;
  &lt;textarea class="commentinput" name="body" id="body" cols="20" rows="5"&gt;&lt;/textarea&gt;
  &lt;input type="button" class="add-comment-submit" value="Submit" /&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is my Javascript:<br></p>
  
  <pre><code>$(document).ready(function () {
  
  $(".add-comment-submit").on("click", function (e) {
  
  
  
      e.preventDefault();
  
  
  
      var submit = $(this);
  
  
  
      if (submit.hasClass("working")) return false;
  
  
  
      submit.addClass("working");
  
      submit.val("Working...");
  
  
  
      $.post('submit.php',$(this).serialize(),function(msg){
  
          submit.removeClass("working");
  
          submit.val("Submit");
  
          $("&lt;div&gt;&lt;/div&gt;").html(msg).fadeIn("slow").insertBefore(submit.parent($(".addCommentContainer"))).slideDown();
  
      });
  
  });
  
  });
  </code></pre>
  
  <p>Here is my submit.php which is printing "Hello World" after submit:<br></p>
  
  <pre><code>&lt;?PHP 
  $message = 'Hello World';
  echo $message;
  ?&gt;
  </code></pre>
  
  <p><b>I don't know why but it seems it's not posting the information on submit.php or i am at wrong somewhere because when i try this in submit.php:</b><br></p>
  
  <pre><code>&lt;?PHP 
  $message = $_POST["body"];
  echo $message;
  ?&gt;
  </code></pre>
  
  <p> It's not printing what is typed in the text area with name "body". How i make it print what is writen in the body input text area?<br><br>
  Thanks in advance!</p>