title: Why php tag is not working in html file?
body: <p>I have a register.php file and I have defined $name="" inside that file </p>
  
  <pre><code>global $name;
  $name = "";
  </code></pre>
  
  <p>and now in the html form I have:</p>
  
  <pre><code>    &lt;form name="register" action="register.php" method="post" class="smart-green"&gt;
  
  
          &lt;h1&gt;Contact Form
              &lt;span&gt;Registration Form&lt;/span&gt;
          &lt;/h1&gt;
          &lt;label&gt;
              &lt;span&gt;Username:&lt;/span&gt;
              &lt;input id="name" type="text" name="username" value ="&lt;?php echo $name;?&gt;" placeholder="Enter your user name" maxlength="20" /&gt;
          &lt;/label&gt;
     &lt;/form&gt;
  </code></pre>
  
  <p>But the output is <code>&lt;?php echo $name; ?&gt;</code> instead of empty! Any idea of how I can fix this?</p>