SyntaxFix
Write A Post
Hire A Developer
Questions
You have to use $_POST['date'] instead of $date if it's coming from a POST request ($_GET if it's a GET request).
$_POST['date']
$date