Okai, so I was running a check on my website and asked a couple of people if they could register on my page and some of the people managed to get through my registration without setting date (it turned automatically to 00-00-0000). This is the assigning of the variables (using 1 common submit button).
$username = $_POST['username'];
$passwordone = $_POST['passwordone'];
$passwordtwo = $_POST['passwordtwo'];
$name = $_POST['fullname'];
$email = $_POST['email'];
$age = $_POST['date'];
$country = $_POST['country'];
the statement to check the variables
if (!empty($username) && !empty($passwordone) && !empty($name) && !empty($email) && !empty($age) && !empty($country)
How can I write this code so they wont be able to go through without assigning a date?