internetprogrammierung/php/login.php

20 lines
244 B
PHP
Raw Normal View History

2018-06-07 21:55:32 +02:00
<?php
require('dbConnect.php');
if (isset($_POST['index.php'])) {
$name = $_POST['loginName'];
$pswd = $_POST['loginPassword'];
$abfrage = "SELECT PASSWORD WHERE loginName=NAME";
if ($pswd == $abfrage) {
// code..
}
}
?>