|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||||
|
|||||
|
Getting the Date from a client's machine
Hi,
I'd like to be able to tell *when* a form has been posted, ie. the *local* time from the client's machine and not the time it was received by the server. I can extract the date from a client by doing this: Then I'd like to send the date along with the other data in the form. I've tried something like this but it isn't working. php Code:
Any ideas? Thanks, PDP |
|
#2
|
||||||||
|
||||||||
|
RE: Getting the Date from a client's machine
Talk about RTFMAATQY...
php Code:
...where process_form_date.php is... php Code:
I hope some of you find this useful! |
|
#3
|
|||
|
|||
|
RE: Getting the Date from a client's machine
you can also do it without requiring them to submit a form
Code:
<head>
<script type="text/javascript">
var now = new Date();
var tzo = now.getTimezoneOffset();
document.write('<link rel="stylesheet" href="collect.php?tzo='+tzo+'" />');
</script>
</head>
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Getting the Date from a client's machine |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|