You are here: Re: countdown with tracking time « PHP Programming Language « IT news, forums, messages
Re: countdown with tracking time

Posted by Ivαn Sαnchez Ortega on 03/03/06 02:21

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yannick Benoit wrote:

> I want to create a script which post a form with fields to fill in but
> with a timer so that if the person fills the form in 10 seconds he gets a
> specific score but if its in 20 then the score is lower etc...
>
> I can put on a countdown or timer using javascript but i dont know how to
> grab the time from that timer and post it with the form.

Don't. Trust the time on the webserver, not the time given by that
javascript counter.

(By "time on the webserver" I mean "store the time when the page has been
served the last time to that user, and compare it against the time when the
data has been submitted").

Don't ever rely on user inputted data. Specially if that data come from
javascript stuff. It can be easily tampered with.

- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

You never have to change anything you got up in the middle of the night
to write.
-- Saul Bellow

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEB4vz3jcQ2mg3Pc8RAhW3AJ4iczyz6viY2pA3icX5r7htUXaY0ACfbMYG
Ugc0WGY0p0E/PkQSMDSnz+s=
=YQdG
-----END PGP SIGNATURE-----

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация