Menu
Hi all. Once again, I am practicing php. The lesson I’m working on lets the visitor select the date. Once I finished writing the script, the month and day are working perfectly. The year however, is showing as 1 – 10, instead of 2000 – 2010.
The script for the year is”
[COLOR=red]// Create the year pull-down menu.
$EndYear = $Year + 10;
while ($Year <= $EndYear ) {
print(“<option value=$Year>$Year</option>n”);
$Year++;
}
print (“</select>n”);
print (“<p><input type=submit name=submit value=”Go!”></form>n”);
[/COLOR].
You can see what I mean for yourself at [url]http://iwdtestsite.com/ControlStructures/select.php