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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4