Parent’s Corner

Here are the results based on the information you provided:

your estimated due date will be ” . $duedate . “.

There are ” . $d2 .” days until your due date.

You are currently ” . floor($d3) . $ws .” pregnant.

” . $week[floor($d3)-1] .”

“;
else
if(floor($d3)>40 and floor($d3)<43) echo "

your estimated due date is ” . $duedate . “ however you should be due to give birth any day now.

You are currently ” . floor($d3) . ” weeks pregnant.

“;
else echo “

please see your doctor for more information

“;
?>

Please select the first day of your last menstrual period:

Usual number of days in your period:

“;
for($i=1;$i<=12;$i++) { if($i==$month) $selected='selected="true"'; else $selected=''; $chooser.="“;
}
$chooser.=” / “;

$chooser.=” / “;

$chooser.=” “;

return $chooser;
}
?>