<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<HTML>
<HEAD>
<LINK href="stile.css" rel="stylesheet" type="text/css"> <!---collegamento al folgio di stile-->
<META name="generator" content=\"screem 0.9.3, kwrite and quanta" >
<META name="author" content="dario 'radio'" >
<META name="Descriptionr" content="Riusulatato del calcolo di <?echo($to);?> secondi" >
<META http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" >
<TITLE>1 000 000 000 secondi</TITLE>
</HEAD>
<BODY>
<FORM action="index.php" method="POST" enctype="multipart/form-data">
<?
//QUI CONTROLLO SE LA DATA INSERITA È VALIDA, TUTTI I GIORNI VEGNONO CONSIDARATI ESISTENTI FINO AL 31
$ctl=true;
if ($mese>12) {echo("Ma quanti mesi ci sono in un anno secondo te?!?"); echo("<input type=\"hidden\" name=\"ctl1\" value=\"false\">");; $ctl = false;};
if ($mese>12) {echo("Mi dispiace ma il servizio è disponibile solo per date a partire dal 1970, sorry!"); echo("<input type=\"hidden\" name=\"ctl6\" value=\"false\">");; $ctl = false;};
if ($ore>24) {echo("Ma quante ore ci sono in un giorno secondo te?!?"); echo("<input type=\"hidden\" name=\"ctl2\" value=\"false\">"); $ctl = false;};
if ($min>59) {echo("Ma quanti minuti ci sono in un'ora secondo te?!?"); echo("<input type=\"hidden\" name=\"ctl3\" value=\"false\">"); $ctl = false;};
if ($sec>59) {echo("Ma quanti secondi ci sono in un minuto secondo te?!?"); echo("<input type=\"hidden\" name=\"ctl4\" value=\"false\">"); $ctl = false;};
if ($giorno>31) {echo("Ma quanti giorni ci sono in un mese secondo te?!?"); echo("<input type=\"hidden\" name=\"ctl5\" value=\"false\">"); $ctl = false;};
if ($ctl) {
echo("<br><H2>A partire dal $giorno/$mese/$anno alle ore $ore:$min:$sec...</H2>");
$intnato = mktime($ore, $min, $sec, $mes, $giorno, $anno); /*QUI DATA IN FORMATO UNIX PER CALCOLO SEC*/
$int2 = $intnato+$to;/*BEH, QUI SEMPLICEMENTE VENGONO AGGIUNTI 1 MLN DI SECONDI ALLA DATA DI NASCITA*/
$int3 = strftime("%d-%m-%Y alle ore %H:%M:%S", $int2);/*QUI FORMATTO IN MODO 'LEGGIBILE' LA DATA PER IL MLD DI SEC*/
echo("<br><H2>...saranno passati $to secondi il $int3 </H2>");
echo("<input type=\"hidden\" name=\"giorno\" value=\"$giorno\">
<input type=\"hidden\" name=\"mese\" value=\"$mese\">
<input type=\"hidden\" name=\"anno\" value=\"$anno\">
<input type=\"hidden\" name=\"ore\" value=\"$ore\">
<input type=\"hidden\" name=\"min\" value=\"$min\">
<input type=\"hidden\" name=\"sec\" value=\"$sec\">");
echo("<DIV align=center><input name=\"invia\" value=\"Altro calcolo\" type=\"submit\"></DIV></form>");}
else {echo("
<DIV align=center><input name=\"invia\" value=\"Correggi l'errore\" type=\"submit\"></DIV></form>");}
echo("</FORM></BODY></HTML>");
?>