I have edited the html, as before the form action was linked to my php file! But after setting up the mysql database with login table not much seems to work. The only difference now is that when I submit the form, nothing happens. I'm not sure if it's my html login form, that's not working or if it's my php, I've set up the database and have created a record, so that I could try out my form, but it does nothing. Here's my html;
<!DOCTYPE html>
<html>
<head>
<title>Student Room Login</title>
</head>
<link rel="stylesheet" type="text/css" href="loginstyle.css">
<body>
<div id ="container">
<div id ="header">
<h1>Student Room</h1>
</div>
</div>
<div id ="content">
<div id = "nav">
<h3><h3 style = "font-size: 20px">Navigation</h3>
<img src="nav-image.png">
<ul>
<li><a href="Index.html">Home</a></li>
<li><a href="Login.html">Log in<a/></li>
</ul>
</div>
<div id ="jumbotron">
<h2>Login</h2>
<form action ="" method="post">
<label>Username :</label>
<input id = "name" name ="username" placeholder = "username" type = "text">
<label>Password :</label>
<input id = "password" name = "password" placeholder ="************" type ="password">
<input name ="submit" type = "submit" value = " Login ">
<span><?php echo $error; ?></span>
</form>
</div>
</div>
<div id ="footer">
Copyright © 2014 Reuben
</div>
</body>
</html>
I literally don't know what to do...