u like that tony, lol haven't tried it yet, looking at some of the docs. You know what I hate about these live docs? they fricking throw forms into everyone so you cant tell the correct way to do something.
by the time I get to the cfm learning during the evening, my brains fried, someone must have slipped me a bunch of 'cid in high school cause i sure cant remember anything anymore, lol Dave ----- Original Message ----- From: "Tony Weeg" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 6:46 PM Subject: RE: time and date to abort a page > dave, > > is that nice to pour gas on fires :) > > did you get it figgered out? > > tw > > -----Original Message----- > From: Dave Lyons [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 6:44 PM > To: CF-Talk > Subject: Re: time and date to abort a page > > > lol! :) > thanks I needed a good laugh at the moment! > I was like oh not cfform AGAIN!!!! > haha > its the damn seconds that are really throwing me off. > Thanks i will try and see > > is it wise to use cfabort in this case? > > and do I have to cflock it?? haha > > go avs!!!!!!!!! > Dave > ----------------------------------------- > > ----- Original Message ----- > From: "charlie griefer" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Tuesday, February 11, 2003 6:41 PM > Subject: Re: time and date to abort a page > > > > Dave: > > > > You should be able to accomplish this very easily with cfform... > > > > (KIDDING...hey, i kid because i love) > > > > Seriously...looks like you were on the right track. > > > > <cfset deadline = createDateTime(2003, 3, 10, 18, 0, 0)> > > > > <cfif dateCompare(now(), deadline, 's') GT 0> > > SORRY > > </cfif> > > > > hth, > > Charlie > > > > > > > > Dave Lyons writes: > > > > > sorry for another stupid post but I cant get this too wok. > > > Been reading the live docs and its confused me even more! figures! > > > > > > I just got mad and deleted the code and starting fresh > > > > > > what I need to do is on a certain day of the week and at a certain > time > (say Friday, march 10, 2003 at 6pm exactly) to abort any further actions > with the page > > > so someone cant make an entry into the db 1 sec after the deadline. > > > should be simple but I cant get it to work right, did once but it > was > reversed, lol > > > Been messing around with a lot of the date & time functions but I > really > couldn't tell which 1 to use. > > > Basically something like this > > > <!--- set current time ---> > > > <cfset timeUP = Now()> > > > <!--- check to see if time and day is before the deadline, if it is > after the deadline abort---> > > > <cfif timeUP GT 03/10/2003 18:00:00> > > > Sorry time is up > > > > > > <cfabort> > > > > > > <!--- if it is before the deadline continue with the insert form > ---> > > > <cfelse> > > > > > > ..rest of page > > > > > > </cfif> > > > > > > any suggestions.. (besides read the ben forta book, lol) > > > > > > dave > > > <!--- doesn't know jack about cfm ---> > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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

