title: How do i submit a hidden form using ajax when the page loads?
body: <p>How can i submit a hidden form to php using ajax when the page loads?</p>
  
  <p>I have a form with one hidden value which i want to submit without refreshing the page or any response message from the server. How can implement this in ajax? This is my form. I also have another form in the same page.</p>
  
  <pre><code>&lt;form id = "ID_form" action = "validate.php" method = "post"&gt;
   &lt;input type = "hidden" name = "task_id" id = "task_id" value = &lt;?php echo $_GET['task_id'];?&gt;&gt;
  &lt;/form&gt;
  </code></pre>