title: Display PHP POST results after a form submit, then reload same blank form when page "Refresh" clicked
body: <p>After over 6 hours of searching here and other forums/blogs, still found no operational method to do this, <strong><em>all on same page</em></strong>; so I remain confident this has not been asked in exact same way:  Enter some data to a form, submit, show results... then if user clicks "Refresh", show the original blank form and not show a browser message about "You are resending data, etc. etc." Here is the base code, it functions as expected, just desire to have starting blank form show after clicking browser "Refresh". I have attempted both PRG and Sessions methods without success. </p>
  
  <pre><code>&lt;!DOCTYPE html &gt;
  &lt;head&gt;
  &lt;title&gt;Refresher test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;br/&gt;&lt;br/&gt;&lt;h2&gt;What Me Refresh&lt;/h2&gt;
  
  &lt;?php
  //If form not submitted, display form.
  if (!isset($_POST['submit'])||(($_POST['text']) == "")){
  ?&gt;  
  
  &lt;p&gt;&lt;h3&gt;Enter text in the box then select "Go":&lt;/h3&gt;&lt;/p&gt;
  
  &lt;form method="post" action="RfrshTst.php" &gt;
  &lt;textarea rows="5" cols="50" name="text" &gt;
  &lt;/textarea&gt;
  &lt;input type="submit" name="submit" value="Go" /&gt;
  &lt;/form&gt;
  
  &lt;?php 
  //If form submitted, process input.
  } else {
  //Retrieve show string from form submission.
  $txt = $_POST['text'];
  echo "The text you entered was : $txt";
  
  } ?&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>