So I am trying to run this php file which should act as a login for users. Everytime I try to run it the browser says something like "localhost is currently unable to handle this request." I don't know what to do can anyone help me? Even running simple statements are coming back wit this error.
<?php
$host="localhost";
$user="root";
$password=" ";
$db="storm";
mysql_connect($host, $user, $password);
mysql_select_db($db);
if(isset($_POST['username'])){
$uname=$_POST['username'];
$password=$_POST['password'];
$sql="select * from user where username='".$uname."'AND
password='".$password."' limit 1";
$result=mysql_query($sql);
if(mysql_num_rows($result)==1){
echo "you have logged in";
exit();
}
else{
echo"nice try";
}
?>
<!DOCTYPE html>
<html>
<head>
<title> Login</title>
</head>
<body>
<div class="container">
<form>
<div class="form-input">
<input type="text" name="username" placeholder="Enter the User
Name"/>
</div>
<div class="form-input">
<input type="password" name="password" placeholder="password"/>
</div>
<input type="submit" type="submit" value="LOGIN" class="btn-login"/>
</form>
</div>
</body>
</html>