OK, so I have a entry form login page saved as a .php file, its content is displayed in html and css. It displays a few things and then a log in form with 2 fields: Username, Password and then a 'Log in' button.
I have created a separate .php file which looks like this:
<?php
$username = $_POST ['Username'];
$password = $_POST['Password'];
if ($username && $password)
{
$connect = mysql_connect("localhost", "root", "root") or die ("couldn't connect");
mysql_select_db("sportsday") or die ("couldn't find db");
}
else
die("Please enter a username and password");
?>
I believe this code is now connected to my other page (http://jsfiddle.net/6yw8a2ue/) It shows some errors next to the fields in browser: "Notice: Undefined indiex: Username in G:\xampp\htdocs\Sportsday\entryformlongon.php"...
and once i enter a username and password it goes through to blank page with the error: "Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in G:\xampp\htdocs\Sportsday\login.php on line 11"