RE: [PHP-WIN] A uniqe ID for every item
| From: | Svensson, B.A.T. | Date: | Sun, 19 Aug 2001 16:38:57 +0000 |
| Subject: | RE: [PHP-WIN] A uniqe ID for every item | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8938@lists.php.net to get a copy of this message | ||
>-----Original Message-----
>From: Mad Nas [mailto:m581@yahoo.com]
>Sent: Sunday, August 19, 2001 7:55 AM
>To: php-windows@lists.php.net
>Subject: Re: [PHP-WIN] A uniqe ID for every item
>> It could be help full to know why you need to
>> create a unique number? Is it for ex only for naming
>> temporary files? Or should the uniqueness persist
>> over time?
>
>Hi
>I design a HTML form and any entry have three part :
>1 ) Display Label, It's a label for field.
>2 ) Field Entry, It's a form object <INPUT> , <SELECT> <TEXTAREA> )
>3 ) Error Msg, It's a anchor ( <A name="fieldname">).
>I design a class for entry object .
>Now i must check validation input data and if has error show a message in
>Error Msg. For this work i must have a unique name for any entry.
I am not sure if I did understand you, but at least I have some idea
about what you wants to do. Anyhow: Do you need sequential unique numbers?
Are you going to use a few unique numbers or many at the same timne?
If you just need some few, then you might try to just generate some
random number for the entry name.