I would like to have the dropdownlistbox select the last date in a series... but I'm having a problem keeping tack of the timestamps of days between the two dates... 🙁
<?
$stmp_start = mktime(0,0,0,03,01,2003);
$stmp_end = mktime(0,0,0,10,15,2003);
?>
<html>
<head></head>
<body>
<form name="test">
<select name="date_from" size=1">
<?
for ($i = $stmp_start; $i <= $stmp_end; $i = $i + 86400)
{
$tmpdate = date("d-m-Y", $i);
if ($i == $stmp_end)
{ $slctd = " selected";} else {$slctd = "";}
echo "<option value=\"$i\" $slctd>$i | $stmp_end | $tmpdate</option>\n";
}
?>
</select>
</form>
</BODY>
</HTML>
Hopefully one of you guys can explain me where the missing link is. 🙂