1: 2: 3: 4:
$destdate=''; if(isset($_SESSION['datepick']) && $_SESSION['datepick'] != ""){ $destdate = date("Y-m-d", strtotime($_SESSION['datepick'])); }
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
$datepicker=''; if(empty($_POST['datepicker'])){ } else { $datepicker = $_POST['datepicker']; $_SESSION['datepick'] = $datepicker; } echo 'The date: ' . $_SESSION['datepick'];