title: Keeping the data that user entered in textbox even after submit button is clicked
body: <p>Basically the program is user enter number of the month for example : 12, then if you click the submit button, it will showed the name of the month, in this case December.</p>
  
  <p>The problem is every time I click submit the value in textbox disappeared, I want the textbox still containing "12" even after the submit button is clicked.</p>
  
  <p>Ps : Don't mind the non-English words.</p>
  
  <pre><code>    &lt;form method = "post"&gt;
  4. Insert month(1-12) : 
  &lt;input type="text" name="monthTxt" value=""&gt;&lt;br/&gt;
  &lt;input type="submit" value="Submit"&gt;
  
  &lt;/form&gt;
  
  
  
  
  &lt;?php
      $monthTemp = $_POST["monthTxt"];
      $testing = $monthTemp;
  
      function bulan($bulan)
      {
          $months = array(1 =&gt; 'Januari', 2 =&gt; 'Februari', 3 =&gt; 'Maret', 4 =&gt; 'April', 5 =&gt; 'Mei', 6 =&gt; 'Juni', 7 =&gt; 'Juli', 8 =&gt; 'Agustus', 9 =&gt; 'September', 10 =&gt; 'Oktober', 11 =&gt; 'November', 12 =&gt; 'December');
  
          if($bulan &lt; 1 || $bulan &gt; 12)
          {
              echo "Input tidak boleh kurang dari 0, lebih dari 12, atau huruf";
          }
          else
          {
              echo $months[$bulan];
          }
      }
      bulan($monthTemp);
  ?&gt;
  </code></pre>