Date posting problem
Posted: Thu Nov 03, 2005 4:01 am
Hi,
The following script displays a list of dates within a selection box, however when I post it, it only displays the day of the month followed by a comma.
You can see in the below that the option value={$day}, part <- this is the only bit that posts to my other script.
Any ideas?
The following script displays a list of dates within a selection box, however when I post it, it only displays the day of the month followed by a comma.
You can see in the below that the option value={$day}, part <- this is the only bit that posts to my other script.
Any ideas?
Code: Select all
while ($day <= date('t', $month = mktime(0, 0, 0, $i, 1, $year))) { //Cycle thru days
echo "<OPTION VALUE={$day}, "
.date('m', $month)
.", {$year}>{$day}-"
.date('m', $month)."-{$year}</OPTION>\n";
$day++;