title: Cannot POST /test.php when i am trying to enter data into database its given me this error
body: <p>When I am trying to enter data into using php its give me an error <code>Cannot POST /test.php</code> please how I can solve it I am trying so much but it's not working please anyone can help me to solve this problem. It is my project work</p>
  
  <p>this is my html code</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Login and Registration Form &lt;/title&gt;
  &lt;link rel="stylesheet" href="style.css" &gt;
  &lt;/head&gt;
      &lt;body&gt;
          &lt;div class ="login-page"&gt;
            &lt;div class ="form"&gt;
  
  
            &lt;form class="login-form"&gt;
              &lt;h1&gt;Log In &lt;/h1&gt;
                &lt;input type="text" placeholder="Email id"/&gt;
                  &lt;input type="password" placeholder="Password"/&gt;
                  &lt;button type="submit"&gt;Log In &lt;/button&gt;
                 &lt;p class="message"&gt;Not Registered?&lt;a href="#"&gt; Signup&lt;/a&gt;&lt;/p&gt;
  
                  &lt;/form&gt;
  
            &lt;form class="register-form" action="test.php" method="post"&gt;
                &lt;h1&gt;Sign up &lt;/h1&gt;  
                &lt;input type="text"  name="name" required placeholder="User Name"/&gt;
                  &lt;input type="email"  name="email" required placeholder="Email id"/&gt;
                  &lt;input type="password" name="password" required placeholder="Password"/&gt;
                  &lt;button name="subject" type="submit" value="Register"&gt;Sign up&lt;/button&gt;
                  &lt;p class="message"&gt;Already Registered?&lt;a href="#"&gt;Login&lt;/a&gt;&lt;/p&gt;
  
                  &lt;/form&gt;
  
              &lt;/div&gt;
              &lt;/div&gt;
      &lt;script src='https://code.jquery.com/jquery-3.4.0.min.js'&gt;&lt;/script&gt;
      &lt;script&gt;
          $('.message a').click(function(){$('form').animate({height:"toggle", opacity : "toggle"}, "slow");
          });
      &lt;/script&gt;
  
      &lt;/body&gt;
  
  &lt;/html&gt;    
  </code></pre>
  
  <p>this is my php code </p>
  
  <pre><code>&lt;?php
   $name = $_POST['name'];
   $email =$_POST['email'];
   $password =  $_POST['password'];
  $con = mysqli_connect('localhost','root','','registeration');
  $query = "INSERT INTO `signup`(`name`, `email`, `password`) VALUES ('$name','$email','$password')";
  
  $run=mysqli_query($con,$query);
  
  if($run==TRUE)
      echo "Data Insert Successfully";
   else
       echo "Error !";
  
  ?&gt;
  </code></pre>