using method="post" in your form tag? On 2/27/06, Love Sponge <[EMAIL PROTECTED]> wrote: > Your code is pretty similar to what I am working with. The only problem is > that I am getting an error saying that the element StartTime is undefined in > form. What am I missing here? > > <p>Sign In :<input type="text" NAME="StartTime" SIZE="4" REQUIRED="yes" > validate="time" value="09:00" message="Please enter time format as HH:MM."> > <br> > <input type="submit" name="SUBMIT" value="End">---> > <p>Sign Out :<INPUT TYPE="text" NAME="EndTime" SIZE="4" REQUIRED="yes" > validate="time" value="17:00" message="Please enter time format as HH:MM."> > <HR WIDTH="1100"> > <p> > >If you are on CF7, you can use cfform/cfinput to make sure they are entering > >a valid time value. > > > ><cfform> > ><cfinput name="timefield1" required="yes" validate="time" message="You must > >enter a time in format hh:mm:ss"> > ><cfinput name="timefield2" required="yes" validate="time" message="You must > >enter a time in format hh:mm:ss"> > ></cfform> > > > >Then... > ><cfoutput>#DateDiff(form.timefield1,form.timefield2, > >[precision])#</cfoutput> > > > >Note that DateDiff returns a date/time value rather than an integer value, > >this threw me off for a while recently. > > > >-- Josh > > > > > > > > > >----- Original Message ----- > >From: "Eric Lackey" <[EMAIL PROTECTED]> > >To: "CF-Talk" <[email protected]> > >Sent: Monday, February 27, 2006 10:39 AM > >Subject: RE: Time Calculations > > > > > >> > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233609 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

