Inside my code i have an input field which i ask user a date. i want to compare it with present date and then give a variable a specific value I've simplified my code for you to understand it with example names . So far i made something like but it wont work ...
<?php
if ((isset($_POST["input_Date"])) //Checking if the input is NOT empty
&&
($_POST["input_Date"])>(date('Y-m-d')))) // Checking if the date is previous
from current date
{$Variable="Correct"}//Give the variable i want a value
?>