Update login.php

This commit is contained in:
jakani24
2024-01-14 15:30:30 +01:00
parent 10b05bb273
commit ad5586e7a2

View File

@@ -27,12 +27,9 @@
</div> </div>
<button type="submit" class="btn btn-primary btn-block">Login</button> <button type="submit" class="btn btn-primary btn-block">Login</button>
</form> </form>
</div> <br>
</div> <!-- php code to verify password-->
</div> <?php
</div>
</div>
<?php
// Check if the form is submitted // Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_SERVER["REQUEST_METHOD"] == "POST") {
//include db pw //include db pw
@@ -82,6 +79,12 @@
$stmt->close(); $stmt->close();
$conn->close(); $conn->close();
} }
?> ?>
</div>
</div>
</div>
</div>
</div>
</body> </body>
</html> </html>