title: How to hide a form after submit button is pressed
body: <p>I have created a simple program in php. I get the user to enter a string and then the reverse of the string is printed out. My question is how would hide the form after the submit button is pressed? my code that i have written is below</p>
  
  <pre><code>&lt;?php
  //TASK 16 ENTER A STRING AND REVERSE IT
  
  $str = $_POST['usersString'];
  
  $len = strlen($str);
  
  for($i=($len-1); $i&gt;=0; $i--){
      echo $str[$i];
  }
  
  
  
  
  ?&gt;
  
  &lt;form action="task16.php" method="POST"&gt;
  Enter a string to reverse! &lt;input type="text" name="usersString" /&gt;
  &lt;input type="submit" value="enter" /&gt;
  &lt;/form&gt;
  </code></pre>