<?php SESSION_START();include("head.php"); ?><body><div class="wrapper"><header><?php include("navigation.php"); ?></header><div class="col-main from_print"><div class="form_print_wrapper"><form action="year_report.php" method="POST"><ul><li><strong>Select Start Date : </strong></li><li><label>Select Year</label><select name="year1"><?php echo year(); ?></select></li><li><label>Select Month</label><select name="month1"><?php echo month(); ?></select></li><li><label>Select Day</label><select name="day1"><?php echo day(); ?></select></li><li><input type="submit" class="btn searchme" value="Filter"/></li></ul><ul><li><strong>Select End Date : </strong></li><li><label>Select Year</label><select name="year2"><?php echo year(); ?></select></li><li><label>Select Month</label><select name="month2"><?php echo month(); ?></select></li><li><label>Select Day</label><select name="day2"><?php echo day(); ?></select></li></ul></form></div></div><?php include("left.php");  ?><?php include("footer.php"); ?></div></body></html><?php 		function day() {		$day = 0;		$end = 31;		$data = 0;		WHILE($day < $end){			$day++;			$data .= "<option value='".$day."'>".$day."</option>";				}		return $data;	}	function month() {				echo  "<option value='01'>January</option>";			echo  "<option value='02'>February</option>";			echo  "<option value='03'>March</option>";			echo  "<option value='04'>April</option>";			echo  "<option value='05'>May</option>";			echo  "<option value='06'>June</option>";			echo  "<option value='07'>July</option>";			echo  "<option value='08'>August</option>";			echo  "<option value='09'>September</option>";			echo  "<option value='10'>October</option>";			echo  "<option value='11'>November</option>";			echo  "<option value='12'>December</option>";				}	function year() {		$day = 1980;		$end = 2012;		$data = 0;		WHILE($day < $end){			$day++;			$data .= "<option value=".$day.">".$day."</option>";				}		return $data;	}?>