$now = getdate();
$min_array = array(15,30,45,60);
$fm_year = (isset($_POST["year"]) ? $_POST["year"] : intval($now["year"]) + 1);
$fm_month = (isset($_POST["month"]) ? $_POST["month"] : intval($now["mon"]) - 1);
$fm_day = (isset($_POST["day"]) ? $_POST["day"] : $now["mday"]);
if (isset($_POST["hour"]) && isset($_POST["minute"]) && isset($_POST["ampm"])) {
$fm_ampm = $_POST["ampm"];
$fm_hour = $_POST["hour"];
$fm_minute = $_POST["minute"];
} else {
$fm_minute = $now["minutes"];
$fm_hour = $now["hours"];
for ($i = 0; $i < count($min_array); $i++) {
if ($fm_minute < $min_array[$i]) {
$fm_minute = $min_array[$i];
if ($min_array[$i] == 60) {
$fm_minute = 0;
$fm_hour = intval($fm_hour) + 1;
}
break;
}
}
$fm_ampm = 0;
if ($fm_hour >= 12) {
$fm_hour = intval($fm_hour) - 12;
$fm_ampm = 12;
}
}
?>
Step 1: Fill in your wedding date below and click "Generate Code".
Step 2: Copy the generated code from the text area below the form.
Step 3: Paste the copied code into your personal web page's code!