I have created this basic login form and I’m using this login script from [URL=”https://github.com/panique/php-login-minimal/blob/c0a98755afb5759d1ad2822ec0631625cce3184c/classes/Login.php”]https://github.com/panique/php-login-minimal/blob/c0a98755afb5759d1ad2822ec0631625cce3184c/classes/Login.php
[code=html]<?php
require ‘classLogin.php’;
if (isset($_POST[‘submit’])) {
loginWithPostData($_POST[‘user_name’], $_POST[‘user_password’]);
}
?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Login</title>
</head>
<body>
<div class=”container”>
<form method=”post”>
<h2>Please sign in</h2>
<input type=”text” class=”form-control” name=”user_name” placeholder=”Email address” value=”<?php if(isset($_POST[‘user_name’])) { echo ($_POST[‘user_name’]);} ?>” >
<input type=”password” class=”form-control” name=”user_password” placeholder=”Password” autofocus>
<button name=”submit” type=”submit”>Sign in</button>
</form>
</div>
</body>
</html>
I receive this error message upon hitting the submit button “Fatal error: Call to undefined function loginWithPostData() in /form.php on line 4
I am sort of new to this so my question is how do I make calls to the functions so the credentials can be validated?