Re: best way to get 2 unique strings on the same page load?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36306
interpreted = N
texte = John, Of course, I've never tried this, but what would happen if you create the first number when the page is first accessed, then run some delaying loop that takes a couple of seconds to run, and then create the second number? If cart numbers are a function of date and time, that would seem to ensure unique numbers...at least in theory.I guess you could also create a lotta cart numbers, store them in a database, delete any duplicates, and then assign them for use as required. That would ensure unique numbers, but looks like a lotta work, too.I don't know that these would work other than in theory and even if they do, they may not be better than using [cart][random]. It's just a couple of [random][thoughts].Glenn > >Is there any chance a string generated by [cart][random] could ever be >duplicated in >the future by simply [cart]? > >Or vice versa- > >Is there any chance a string generated by [cart] could ever be >duplicated in the >future by [cart][random]? > >What is the best way to get 2 unique strings outta webcat on the same page >load? >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  2. Re: best way to get 2 unique strings on the same page load? (Mike Davis 2000)
  3. Re: best way to get 2 unique strings on the same page load? (Paul Fowler 2000)
  4. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  5. Re: best way to get 2 unique strings on the same page load? (John Butler 2000)
  6. Re: best way to get 2 unique strings on the same page load? (Glenn Busbin 2000)
  7. Re: best way to get 2 unique strings on the same page load? (Will Starck 2000)
  8. best way to get 2 unique strings on the same page load? (John Butler 2000)
John, Of course, I've never tried this, but what would happen if you create the first number when the page is first accessed, then run some delaying loop that takes a couple of seconds to run, and then create the second number? If cart numbers are a function of date and time, that would seem to ensure unique numbers...at least in theory.I guess you could also create a lotta cart numbers, store them in a database, delete any duplicates, and then assign them for use as required. That would ensure unique numbers, but looks like a lotta work, too.I don't know that these would work other than in theory and even if they do, they may not be better than using [cart][random]. It's just a couple of [random][thoughts].Glenn > >Is there any chance a string generated by [cart][random] could ever be >duplicated in >the future by simply [cart]? > >Or vice versa- > >Is there any chance a string generated by [cart] could ever be >duplicated in the >future by [cart][random]? > >What is the best way to get 2 unique strings outta webcat on the same page >load? >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Glenn Busbin

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Multiple security dbs (1997) Emailer (1997) Forbidden CGI Error (1997) notification solutions (1997) Searchable WebCat (etc.) Docs ? (1997) error (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) What am I missing (1997) Here we go again...WebDNA - SQL- Stored Procedures (2006) [browsername] not working? (1997) Email Format (1998) WebDNA to Apache RewriteMap (2005) Populating a db from a form textarea (2005) Carts & cookies (1999) Trigger Happy (2005) Searching for all records (1998) Help! WebCat2 bug (1997) Maybe minor bug report (1997) Performance: deafening silence (1999) send mail problem? (1997)