title: Reset $_POST values after submition
body: <p>Basically, I'm trying to do is to reset all the form values after submission. I've tried every post but not got success. Please tell me the way of resetting values after submission so that after refreshing the page the form doesn't submit again. Thank you Here is my piece of code. I've tried headers but it is giving me errors so tell me another way of resetting the submit post after submission.</p>
  
  <pre><code>    &lt;form name="myForm" id="myForm" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" role="form"&gt;
       &lt;div class="form-group"&gt;
       &lt;label&gt;Name&lt;/label&gt;
       &lt;span class="Name_input"&gt;  &lt;/span&gt; 
       &lt;input name="Name" id="Name"  type="text"     class="form-control" required  placeholder="Your name" /&gt;
  
                          &lt;/div&gt;
                          &lt;div class="row"&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label&gt;Email&lt;/label&gt;
                                       &lt;span class="Email_input"&gt;  &lt;/span&gt; 
                                      &lt;input name="Email" id="Email" type="text" class="form-control" required  placeholder="Email address" /&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label&gt;Phone&lt;/label&gt;
                                      &lt;input name="Phone" id="Phone" type="text" class="form-control"  placeholder="Phone number" /&gt;          
  
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label&gt;Subject&lt;/label&gt;
                               &lt;span class="Subject_input"&gt;  &lt;/span&gt; 
                              &lt;input name="Subject" id="Subject"  type="text" class="form-control" required  placeholder="Subject" /&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label&gt;Message&lt;/label&gt;
                              &lt;textarea class="form-control" name="message" id="message" placeholder="Write you message here..."  style="height:100px;"&gt;&lt;/textarea&gt;
                          &lt;/div&gt;
                          &lt;input type="Submit" name="Submit" value="Send message"  class="btn btn-two"/&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
                      &lt;/form&gt;
  
  
    if(isset($_POST['Submit']))
    {
    $User_Name=$_POST['Name'];    
    $User_Email=$_POST['Email'];
    if(isset($_POST['Phone']))
    $User_PhoneNumber=$_POST['Phone'];
    else
    $User_PhoneNumber="";
    $Feedback_Subject=$_POST['Subject'];
    $Feedback_Message=$_POST['message'];
    $Inserted=mysqli_query($con, "Insert into feedback (Name , Email, Phone_Number, Subject, Message ) 
    VALUES('" . $User_Name . "', '" .$User_Email . "', '" . $User_PhoneNumber. "', '" . $Feedback_Subject . "','" . $Feedback_Message . "')");
    }
  </code></pre>