l208/123456789.php

if (isset($_GET['uname']) && isset($_GET['password'])){ function validate($data){ $data = trim ($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $uname = validate ($_GET['uname']); $pass = validate ($_GET['password']); if ( empty($uname)){ header("location: inlog.php?error = user name niet ingevuld"); exit(); } else if (empty($pass)){ header("location: inlog.php?error = password niet ingevuld"); exit(); } else { $sql = "select * from inlog where user_name = '$uname' and password = '$pass' "; $result = mysqli_query($db, $sql); if(mysqli_num_rows($result)){ } } } else { header("location:index.php?"); exit(); }

Resultaat

Made by Thijs Aarnoudse