<cfoutput> <input type="text" name="theTime" value="#DateFormat(todayDate, "dddd, mmmm dd, yyyy")#" size="30" onBlur="this.value='#DateFormat(todayDate, "dddd, mmmm dd, yyyy")#';"> </cfoutput>
or <input type="text" name="theTime" value="#DateFormat(todayDate, "dddd, mmmm dd, yyyy")#" size="30" READONLY> thats two methods that i use. tony -----Original Message----- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:44 PM To: CF-Talk Subject: Re: Inserting date/time stamp just make a function that reset the form (to its default values) when the submit button is clicked.. <input type="button" name="submit" value="submit" onClick="runTheFunction()"> function runThefunction(){ document.formname.reset(); document.formname.submit(); } ----- Original Message ----- From: "FlashGuy" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 6:46 PM Subject: RE: Inserting date/time stamp > Right, but the idea I was trying to achieve was to keep the "look" the same (with the <input> field) so it matches the rest of the form. > > > > > From: "FlashGuy" <[EMAIL PROTECTED]> > > >How can I stop people of editing the <input line where I'm dumping the date? I don't want them to be able to change it. > > > > > ><input type="text" name="theTime" value="<cfoutput> #DateFormat(todayDate, "dddd, mmmm dd, yyyy")#</cfoutput>" size="30"> > > > > I'd display it as plain text (not in a form field), and do a hidden form field to send the value through the form. > > > > <cfoutput> #DateFormat(todayDate, "dddd, mmmm dd, yyyy")#</cfoutput> > > <input type="hidden" name="theTime" value="<cfoutput> #DateFormat(todayDate, "dddd, mmmm dd, yyyy")#</cfoutput>"> > > > > > > -------------------------------- > > Scott Brady > > http://www.scottbrady.net/ > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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

