title: HTML form opens PHP script instead of running it
body: <p>I am using WAMP with MySQL and PHP to run a local server. The WAMP server is online and I use a simple HTML script to run PHP file that connects to a database and inserts data in a table that I have created on WAMP server.</p>
  <p>The problem is that instead of running (executing) my script, the browser opens it in text mode. As in I can see the script.</p>
  <p>Now there have been similar questions on this forum and others and people have solved the problem. However what makes my problem unique is that I am able to run a <code>test.php</code>. I am able to display text with it as well as open <code>info.php</code> so PHP is running on my server, however when I use the HTML form it refuses to run and only opens the script.</p>
  <p>I am using Chrome browser and I have also checked it in Firefox with the same result.</p>
  <p>I have one HTML file that is a form linked to my PHP files which handles connection and insertion of values in the table on the WAMP server. The name of the database is test.</p>
  <h3>form.html</h3>
  <pre><code>&lt;form action= &quot;create_product.php&quot; method= &quot;get&quot;&gt;
      &lt;center&gt;
         &lt;table&gt;
              &lt;td&gt;&lt;label&gt;&lt;b&gt;&lt;font size=&quot;5&quot;&gt; Name&lt;/label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;font size=&quot;5&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;&lt;/td&gt;
           &lt;/tr&gt;
           &lt;tr&gt;
              &lt;td&gt;&lt;label&gt;&lt;b&gt;&lt;font size=&quot;5&quot;&gt; Description&lt;/label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;font size=&quot;5&quot;&gt;&lt;input type=&quot;text&quot; Description=&quot;description&quot; /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;center&gt;&lt;td&gt;&lt;/td&gt;&lt;/center&gt;
              &lt;center&gt;&lt;td&gt;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot;/&gt; &lt;input type=&quot;reset&quot; value=&quot;reset&quot;/&gt;
              &lt;/tr&gt;
              
         &lt;/table&gt;
      &lt;/center&gt;
  </code></pre>
  <h3>insert_product.php</h3>
  <pre><code>&lt;?php
  $con= mysql_connect(&quot;localhost&quot;, &quot;admin&quot;,&quot;&quot;);
  $db = mysql_select_db(&quot;test&quot;);
  
  $name = $_GET[&quot;name&quot;];
  $description = $_GET[&quot;description&quot;];
  
  $query = &quot;Insert into products('name','description')values('&quot;.$name.&quot;','&quot;.$description.&quot;')&quot;;
  $result = mysql_query($query);
  ?&gt;
  </code></pre>