logged into db
This commit is contained in:
parent
15855aacfd
commit
5a190979b1
@ -36,15 +36,17 @@
|
||||
<form method="post">
|
||||
<div>Uživatelské jméno: <input type="text" maxlength="32" name="username" required><br></div>
|
||||
<div>Heslo: <input type="text" name="password" required><br></div>
|
||||
<div id="sub_btn_div"><input id="sub_btn" type="submit" name="sub" value="Přihlásit se"></div>
|
||||
<div id="sub_btn_div"><input id="sub_btn" type="submit" name="sub"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$secret = fopen("./secret", "r");
|
||||
$database = mysqli_connect("109.123.243.163", "fht", fgets($secret), "fht");
|
||||
fclose($secret);
|
||||
|
||||
if (isset($_POST["sub"]))
|
||||
{
|
||||
//stuff
|
||||
//echo hash('sha256', $_POST["password"]);
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user