title: Retain textbox value
body: <p>My Code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;A BASIC HTML FORM&lt;/title&gt;
  
  &lt;?PHP
  if (isset($_POST['Submit1'])) {
  $username = $_POST['username'];
  }
  ?&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;Form name ="form1" Method ="POST" Action ="basicForm.php"&gt;
  &lt;Input Type = "text" Value ="&lt;?PHP print $username ;?&gt;" Name ="username"&gt;
  &lt;Input Type = "Submit" Name = "Submit1" Value = "Login"&gt;
  &lt;/FORM&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Problem: The PHP code gets displayed in the textbox instead of the actual value</p>
  
  <p><img src="https://i.stack.imgur.com/JslaT.jpg" alt="Demonstration"></p>