- or download this
<form name="theform" action="getmytime.pl">
<input type="hidden" name="user_localtime">
...
}
</script>
<body onLoad="set_user_localtime())">
- or download this
# tells the javascript that the script as already been run
print "<script>var already_submitted=1;</script>";
- or download this
use CGI;
$query = CGI::new;
...
@server_localtime = localtime;
$offset = $user_time[0] - $server_localtime[2];
print $offset;