<form action="Test.php" method="POST">
<select name="PickDate">
Code: Select all
for ($i = 0; $i <= 15; $i++) {
$today = mktime (0,0,0,date("m") ,date("d")-$i ,date("Y"));
$option=date("D M j, Y",$today);
$value=date("m:d:Y",$today);
echo "<option value=\"$value\" $selected>$option</option>\n";
}... and then the POST section in the next page .....
Code: Select all
$PickDay = date("d", $_POST['PickDate']);
echo $PickDay;.... returns a 31, even though today is the 14th.