title: PHP: Code gets turned into HTML <!-- Comments? -->
body: <p>when I enter in code like this:</p>
  
  <pre><code>&lt;p&gt;Hello &lt;? echo $name; ?&gt;, How are you?&lt;/p&gt;
  </code></pre>
  
  <p>It prints:</p>
  
  <pre><code>&lt;p&gt;Hello &lt;!--? echo $name; ?--&gt;, How are you?&lt;/p&gt;
  </code></pre>
  
  <p>As a comment. I have it in a file called base.js with this code:</p>
  
  <pre><code>function showName() {
     document.getElementById("name").innerHTML = "&lt;p&gt;Hello &lt;? echo $name; ?&gt;, How are you?&lt;/p&gt;";
  }
  </code></pre>
  
  <p>So I embed the .js file like so:</p>
  
  <pre><code>&lt;script type="text/javascript" src="base.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>So, after it changes the <code>&lt;p id="name"&gt;&lt;/p&gt;</code> I get:</p>
  
  <pre><code>&lt;p id="name"&gt;Hello &lt;!--? echo $name; ?--&gt;, How are you?&lt;/p&gt;
  </code></pre>
  
  <p>I had the code in the .php file, and it seemed to work fine. Now that I have it in a separate base.js file, it ceases to function. Help!</p>