title: Unable to connect php and html file
body: <p>i have added action value
  Registration file</p>
  
  <pre><code>  &lt;body&gt;
  
  &lt;div id="registration"&gt;
   &lt;h2&gt;&lt;b&gt;&lt;i&gt;Electronic Montessori Learning&lt;/i&gt;&lt;b&gt;&lt;/h2&gt;
  
   &lt;form id="RegisterUserForm" action="connect.php" method="post"&gt;
      &lt;fieldset&gt;
           &lt;p&gt;
              &lt;label for="name"&gt;Name&lt;/label&gt;
              &lt;input id="name" name="name" type="text" class="text" value="" /&gt;
           &lt;/p&gt;
          &lt;p&gt;
              &lt;label for="password"&gt;Password&lt;/label&gt;
              &lt;input id="password" name="password" class="text" type="password" /&gt;
           &lt;/p&gt;
         &lt;p&gt;
              &lt;button id="registerNew" name="registerNew" type="submit"&gt;Register&lt;/button&gt;
           &lt;/p&gt;
      &lt;/fieldset&gt;
  
   &lt;/form&gt;
  &lt;/div&gt;
  &lt;body&gt;
  </code></pre>
  
  <p>I have not posted all code of registration.html as it is working fine</p>
  
  <p>connect.php</p>
  
  <pre><code>&lt;?php
  
  
  $db=mysql_connect("localhost", "root", "") or die(mysql_error());
  echo "Connected to MySQL&lt;br /&gt;";
  mysql_select_db("users") or die(mysql_error());
  echo "Connected to Database";
  
  $name ='';
  $password ='';
  if(isset($_POST['registerNew'])){
  // Storing form values into PHP variables
  $name = $_POST['name']; // Since method=”post” in the form
  $password = $_POST['password'];
  
  }
  
  
  mysql_query("INSERT INTO user_eml(Name, Password) VALUES('$name', '$password' ) ") 
  or die(mysql_error());  
  echo "Data Inserted!";
  
  echo    'Thank you for submitting your details!';
  
  ?&gt; 
  </code></pre>
  
  <p>but still its not working and when i press register button it shows php code of connect.php</p>