changes
This commit is contained in:
parent
f2bec5f92d
commit
2de70e7378
@ -9,8 +9,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
<form action="../login.php" method="post">
|
<form action="../login.php" method="post">
|
||||||
<input type="email" name="email" id="email-field" required>
|
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||||
<input type="password" name="password" id="password-field" required>
|
<input type="password" name="password" id="password-field" placeholder="Password" required>
|
||||||
<input type="submit" value="Login">
|
<input type="submit" value="Login">
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
<body>
|
<body>
|
||||||
<h2>Register</h2>
|
<h2>Register</h2>
|
||||||
<form action="../register.php" method="post">
|
<form action="../register.php" method="post">
|
||||||
<input type="text" name="username" id="username-field" required>
|
<input type="text" name="username" id="username-field" placeholder="Username" required>
|
||||||
<input type="email" name="email" id="email-field" required>
|
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||||
<input type="password" name="password" id="password-field" required>
|
<input type="password" name="password" id="password-field" placeholder="Password" required>
|
||||||
<input type="submit" value="Register">
|
<input type="submit" value="Register">
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
@ -24,7 +24,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
$result = $stmt->execute();
|
$result = $stmt->execute();
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
echo "Registration successful. <a href='login.html'>Login here</a>.";
|
echo "Registration successful. <a href='pages/login.html'>Login here</a>.";
|
||||||
} else {
|
} else {
|
||||||
echo "Error: " . $mysqli->error;
|
echo "Error: " . $mysqli->error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user