Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Automatic Unique Form Numbering


  • From: javascript@xxxxxxxxxx (Peter-Paul Koch)
  • Subject: [Javascript] Automatic Unique Form Numbering
  • Date: Tue, 26 Nov 2002 11:26:41 +0000

>I have a form, but need to somehow generate an increasing UNIQUE number to 
>be sent along with the form data. This could be whenever the form is loaded 
>into the users browser or ideally when the user presses 'submit'. It would 
>even be better if that number could become the 'subject' of the resulting 
>email sent.
>Hope someone knows how to help (Code even better).

Use the time in milliseconds. It's extremely unlikely that two users will 
send in the form in exactly the same millisecond.

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
New: Interview by Carole Guevin:
http://netdiver.net/interviews/peterpaulkoch.php
--------------------------------------------------


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail