Mam taki o to kod:
<html>
<head>
<meta charset="UTF-8">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</head>
<form action="register.php" method="post">
<div class="form-group">
<label for="exampleInputEmail1">Podaj Email:</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Email">
<label>Login:</label>
<input type="text" class="form-control" id="login" name="login" placeholder="login">
<label for="exampleInputPassword1">Hasło:</label>
<input type="password" class="form-control" id="pass1" name="pass1" placeholder="Password">
<label for="exampleInputPassword1">Hasło:</label>
<input type="password" class="form-control" id="pass2" name="pass2" placeholder="Password">
<button type="submit" class="btn btn-success" name="sumbit id="submit">Dalej</button>
</div>
<form>
include 'config.php';
$login = $_POST['login'];
$pass = $_POST['pass1'];
$pass2 = $_POST['pass2'];
$email = $_POST['email'];
if($login){
mysql_real_escape_string (htmlspecialchars($login));
mysql_real_escape_string(htmlspecialchars($pass1));
mysql_real_escape_string(htmlspecialchars($pass2));
mysql_real_escape_string(htmlspecialchars($email));
md5($pass1);
echo $pass1;
$sql = "INSERT INTO users (login, pass , email)
VALUES ('$login', '$pass1', '$email')";
mysql_query($sql);
echo "Rejestracja sie udała";
}
else
echo 'Blad podczas rejestracji';
?>
I caly problem polega na tym ,ze haslo nie jest szyfrowane do bazy zapisuje sie normalnie. A przeciez uzylem md5 . Czy moze ktos pomoc ?