Location: PHPKode > projects > CMS Admin > www/date.php
<?php

$year = 2000;
$year = $_GET['year'];
$month = $_GET['month'];
$day = $_GET['day'];

$year = "s_y$year";
$$year = 'selected="selected"';

$month = "s_m$month";
$$month = 'selected="selected"';

$s_d[$day] = 'selected="selected"'; 

echo <<< END

<form>

<label>Date</label>
<select name="year">
	<option value="2006" $s_y2006>2006</option>
	<option value="2007" $s_y2007>2007</option>
	<option value="2008" $s_y2008>2008</option>
	<option value="2009" $s_y2009>2009</option>
	<option value="2010" $s_y2010>2010</option>
</select><select name="month">
	<option value="1" $s_m1>January</option>
	<option value="2" $s_m2>February</option>
	<option value="3" $s_m3>March</option>
	<option value="4" $s_m4>April</option>
	<option value="5" $s_m5>May</option>
	<option value="6" $s_m6>June</option>
	<option value="7" $s_m7>July</option>
	<option value="8" $s_m8>August</option>
	<option value="9" $s_m9>September</option>
	<option value="10" $s_m10>October</option>
	<option value="11" $s_m11>November</option>
	<option value="12" $s_m12>December</option>
</select><select name="day">
END;
for($x=1; $x<=31; $x++)
	echo '<option value="'.$x.'" '.$s_d[$x].'>'.$x . "</option>\n";
echo <<< END
<input type=submit>asdfM</submit>
</form>
END;

?>
Return current item: CMS Admin