title: The problem of linking between a PHP file and a file html file
body: <p>When I click a button to insert the data into the database by implementation of PHP code , but the problem is that it opens a new tab and shows PHP codes</p>
  
  <p>html code</p>
  
  <pre><code>    &lt;html&gt;
          &lt;body&gt;
          &lt;form action="InsertStudent.php" method="post"&gt;
          Student Id: &lt;input type="text" name="SId" /&gt;
          Student Name:&lt;input type="text" name="SName" /&gt;
          Marks: &lt;input type="text" name="marks" /&gt;
          &lt;input type="submit"  value= "Insert"/&gt;
          &lt;/form&gt;
          &lt;/body&gt;
          &lt;/html&gt;
  </code></pre>
  
  <p>PHP code</p>
  
  <pre><code>    &lt;?php
      $con = mysql_connect("localhost","root","1234");
      if (!$con)
        {
        die('Could not connect:'.mysql_error());
        }
      mysql_select_db("my_db",$con);
  
      mysql_query("INSERT INTO Student(StudId,StudName,Marks)
      VALUES ('9876543', 'Ahmed', '90')");
  
      mysql_query("INSERT INTO Student(StudId,StudName,Marks)
      VALUES ('12344556', 'Mohammed', '95')");
  
      mysql_close($con);
      ?&gt;
  </code></pre>