I am following some video tutorials. but whenever i run the code it shows this error. in database my database name is phplogin, my table name is users. my columns name are id,username,password and name. erorr shown is this:
     Parse error: syntax error, unexpected ''".$_POST['' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp1\htdocs\firstlogin\regiser.php on line 8
code is under.
include_once ("db/phplogin");
if(isset($_POST['submit']));
{
    $query = "insert into users(username,password,name) values ("'".$_POST['username']."','".$_POST['password']."','".$_POST['name']."'")";
    if(mysql_query($query))
    {
        echo "data inserted";
    }
    else
    {
        echo "data not inserted";
    }
}
   ?>
  <html>
  <head>
  </head>
  <body>
  <form action='regiser.php' method='POST'>
   Name:<input type ='text' name='Name' placeholder='Name'><br>
   Username:<input type ='text' name='Username' placeholder='Username'><br>
   Password:<input type ='password' name='Password' placeholder='Password'>            <br>
  <input type='submit' name='submit' value='Register'>
  </form>
  </body>
  </html>
 
     
     
     
     
    