...

View Full Version : current week will be seen on the select box when page is load



che_anj
11-27-2007, 06:48 PM
Anyone could help me, When the page is load.. I want that the current week will be seen on the select box..



<select name="starts" class='dtext'>
<?for ($i = 1; $i <= 60; $i++) {
$start = weekDayToTime($i, 2007);
echo "<option value='$i'>" . date("d/m/Y", $start) . "</option> ";
}
?>
</select>
<select name="ends" class='dtext'>
<? for ($i = 1; $i <= 60; $i++) {
$start = weekDayToTime($i, 2007);
$end = cleanTime(604800 + $start);
echo "<option value='$i'>" . date("d/m/Y", $end) . "</option>";
}
?>


thankss...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum