// Emulate register_globals on
if (!ini_get('register_globals')) {
$superglobals = array($_SERVER, $_ENV,
$_FILES, $_COOKIE, $_POST, $_GET);
if (isset($_SESSION)) {
array_unshift($superglobals, $_SESSION);
}
foreach ($superglobals as $superglobal) {
extract($superglobal, EXTR_SKIP);
}
ini_set('register_globals', true);
}
$sale = 84; //Antal dage fra f¯dsel til salgsklar
$month = $_REQUEST['month'];
$day = $_REQUEST['day'];
$year = $_REQUEST['year'];
$output = $_REQUEST['output'];
$submit = $_REQUEST['submit'];
$days = $_REQUEST['days'];
if ($submit == 'Calculate') {
{ $day = $day; }
$echo_mate = date($output, mktime (0,0,0,$month,$day,$year)); //This is the computed date
}
if ($submit == 'Calculate') {
{ $day = $day + $days; }
$echo = date($output, mktime (0,0,0,$month,$day,$year)); //This is the computed date
}
if ($submit == 'Calculate') {
{ $day = $day + $sale; }
$echo_salg = date($output, mktime (0,0,0,$month,$day,$year)); //This is the computed date
}
echo "
";
function getoption($start, $end, $if) {
for ($i=$start;$i<=$end;$i++) {
echo "