Download php file.
<select name=<?php echo"'$date'";?> >
<option value ='0' >Date</option>
<?php
$date=1;
while($date<=31)
{
echo "<option value = '$date'>$date</option>";
++$date;
}
?>
</select>
<select name=<?php echo"'$month'";?> >
<option value ='0' >Month</option>
<?php
$month = array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
$i=0;
while($i<=11)
{
echo "<option value = '$month[$i]'>$month[$i]</option>";
++$i;
}
?>
</select>
<select name=<?php echo"'$year'";?> >
<option value ='0' >Year</option>
<?php
$year=2012;
while($year>=1900)
{
echo "<option value = '$year'>$year</option>";
--$year;
}
?>
</select>.
Usage
<?php
$year="dobyar";
$month="dobmonth";
$date="dobdate";
require("date.php");
?>
Exmaple
<html>
<head>
<title>Form</title>
</head>
<body>
<form>
<table summary="" >
<tr><td>
<?php $year="dobyear";
$date="dobdate";
$month="dobmonth";
require("date.php");
?><
/td></tr>
<tr><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
</body>
</html>