num_rows > 0) { $row = mysqli_fetch_assoc($result); $_SESSION['username'] = $row['username']; header("Location: welcome.php"); } else { echo ""; } } ?> Login Form - Pure Coding