changes
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user