On Mon, 17 Mar 2003 08:19:44 -0600, Larry Juncker wrote: > As long as you use this value when the form is initially loaded, then this > value would insert into the database as well. > > I think I understand what you are asking. > > If you are wanting this to be a unique form ID number then I would recommend > calling it something other than UUID, because once you save it as a ten > digit number, it is no longer a UUID. Does that make sense?
Yup. > Hope this helps. > > Larry Juncker > Senior Cold fusion Developer > Heartland Communications Group, Inc. > [EMAIL PROTECTED] > (515) 574-2122 > > CONFIDENTIALITY NOTICE > The information contained in this e-mail is intended only for the use of the > individual or entity to which it is addressed. This e-mail may contain > information that is privileged, confidential and/or personal. If the reader > of this message is not the intended recipient (or the employee or agent > responsible to deliver it to the intended recipient), you are hereby > notified that any dissemination, distribution, or copying of this > communication is prohibited. > > If you have received this communication in error, please notify us at the > e-mail listed above. > > -----Original Message----- > From: FlashGuy [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 8:05 AM > To: CF-Talk > Subject: RE: Using createUUID() > > > If there is no change of duplication I like this ID#. > > In the code below. Would the UUID number be different for the hidden field > when I eventually insert the form fields into my database? > > <input class="uuid" type="text" > value="<cfoutput>CT-#Right(createUUID(),7)#</cfoutput>" name="uuidnumber" > size="38" onfocus="this.blur();"> > <input type="hidden" value="<cfoutput>CT-#Right(createUUID(),7)#</cfoutput>" > name="uuidnumberr"> > > > > On Mon, 17 Mar 2003 07:55:49 -0600, Larry Juncker wrote: > > > Unless I am missing something very simple, why would this not work? > > > > <cfloop from="1" to="1000" index="i"> > > > > <cfoutput> > > > > CT-#Right(createUUID(),7)# <BR> > > > > </cfoutput> > > > > </cfloop> > > > > I ran this code and found no dups in 1000 lines on one machine > > > > Larry Juncker > > Senior Cold fusion Developer > > Heartland Communications Group, Inc. > > [EMAIL PROTECTED] > > (515) 574-2122 > > > > CONFIDENTIALITY NOTICE > > The information contained in this e-mail is intended only for the use of > the > > individual or entity to which it is addressed. This e-mail may contain > > information that is privileged, confidential and/or personal. If the > reader > > of this message is not the intended recipient (or the employee or agent > > responsible to deliver it to the intended recipient), you are hereby > > notified that any dissemination, distribution, or copying of this > > communication is prohibited. > > > > If you have received this communication in error, please notify us at the > > e-mail listed above. > > > > -----Original Message----- > > From: FlashGuy [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 17, 2003 6:56 AM > > To: CF-Talk > > Subject: Using createUUID() > > > > > > Hi, > > > > I need to generate a unique ID for every form I submit. The createUUID # > > generated is just too long for my needs. My ID only needs to be 10 > > characters in length. Something like: > > > > CT-0001001 > > > > I'm using MySQL. Can I have mysql generate the unique ID? How could I do > > this with CF? > > > > > > > > > > --------------------------------------------------- > > Colonel Nathan R. Jessop > > Commanding Officer > > Marine Ground Forces > > Guatanamo Bay, Cuba > > --------------------------------------------------- > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4