This commit is contained in:
Richard Mikloš 2024-01-20 17:18:54 +01:00
parent f2bec5f92d
commit 2de70e7378
3 changed files with 6 additions and 6 deletions

@ -9,8 +9,8 @@
<body>
<h2>Login</h2>
<form action="../login.php" method="post">
<input type="email" name="email" id="email-field" required>
<input type="password" name="password" id="password-field" required>
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
<input type="password" name="password" id="password-field" placeholder="Password" required>
<input type="submit" value="Login">
</form>
</body>

@ -9,9 +9,9 @@
<body>
<h2>Register</h2>
<form action="../register.php" method="post">
<input type="text" name="username" id="username-field" required>
<input type="email" name="email" id="email-field" required>
<input type="password" name="password" id="password-field" required>
<input type="text" name="username" id="username-field" placeholder="Username" required>
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
<input type="password" name="password" id="password-field" placeholder="Password" required>
<input type="submit" value="Register">
</form>
</body>

@ -24,7 +24,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$result = $stmt->execute();
if ($result) {
echo "Registration successful. <a href='login.html'>Login here</a>.";
echo "Registration successful. <a href='pages/login.html'>Login here</a>.";
} else {
echo "Error: " . $mysqli->error;
}