title: how to unset post array?
body: <p>every time i am refreshing the page and i am getting the same value stored in the post array.
  i want execution of echo statement only after submit and after refreshing no echo results..</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['submit'])) 
  { 
  $name = $_POST['name'];
  echo "User name : &lt;b&gt; $name &lt;/b&gt;";
  
  
  }
  ?&gt;
  &lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt;
  &lt;input type="text" name="name"&gt;&lt;br&gt;
  &lt;input type="submit" name="submit" value="Submit Form"&gt;&lt;br&gt;
  &lt;/form&gt;
  </code></pre>