php shows code only sometimes
<p>I'm studying PHP (so I'm a rookie). I'm working on a PC (windows 7) with XAMPP, Apache.</p>

<p>I have two files exampleform.html:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;form action="welcome.php" method="post"&gt;
Name: &lt;input type="text" name="fname" /&gt;
Age: &lt;input type="text" name="age" /&gt;
&lt;input type="submit" /&gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and welcome.php:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

Welcome &lt;?php echo $_POST["fname"]; ?&gt;!&lt;br /&gt;
You are &lt;?php echo $_POST["age"]; ?&gt; years old.

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I created those 2 files and worked well. On Monday I encountered the problem that upon clicking the buttom summit query it would show me the code instead the result. I searched few forums and found I need to add the following lines to httpd.conf (xampp/apache/conf/):</p>

<p>AddType application/x-httpd-php-source .phps</p>

<p>AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .php</p>

<p>Then it worked.
Today when I try again it shows me the code once more.
Please help. It can't be so complicated!</p>
