Topic: Problem with storing in database
what is wrong ? i have no mistake on browser, but it don't store data in my DataBase.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form method="post" action="LogIn.php" >
Introduce Login:
<input type="text" name="login" required>
Introduce Email:
<input type="email" name="email" required>
Introduce parola:
<input type="password" name="parola" required>
Introduce numele:
<input type="text" name="nume" required>
Introduce prenumele:
<input type="text" name="prenume" required>
Data nasterii:
<input type="date" name="data" required>
<input type="submit" name="submit" value="Trimite">
</form>
</body>
</html>
________________________________________________________________________________
______________________________________
<!DOCTYPE html>
<html>
<head>
<title></title>
<form method="post" action="log.php" >
<input type="submit" name="sub" value="Login">
</form>
</head>
<body>
<?php
echo "Bine team regasit in obstina noatrsa Dl ".$_POST['nume']." ".$_POST['prenume']."
";
echo "Vam trimis un mesaj de confirmare pe email-ul Dvs ".$_POST['email'];
?>
<?php
$dbname = "client";
$servername = "localhost";
$username = "root";
$password = "";
$link = mysqli_connect($servername, $username, $password, $dbname)
or die ('Nu s-a conectat' . mysql_error());
$login = $_POST['login'];
$email = $_POST['email'];
$pass = $_POST['parola'];
$nume = $_POST['nume'];
$prenume = $_POST['prenume'];
$data = $_POST['data'];
$sql = "INSERT INTO client1 (login, email, parola, nume, prenume, data)
VALUES ($login, $email, $pass, $nume, $prenume, $data)";
mysqli_close($link);
?>
</body>
</html>