You can't have a form field called due_date passed to a coldfusion action page, unfortunately...
<input name="due_date"> tells the ColdFusion server to validate that a field called "form.due" contains a valid date value, with the value in form.due_date being the message to inform the user that the date is invalid. Since form.due_required is not also specified, a blank value in the field will not produce the error message telling the user to go back and input a proper date. You'll have to change the name of the input field to "duedate" or append it with the name of what the due date is for ( you can't pre-pend it because "item_due_date" would have the same problem )... hth S. Isaac Dealey Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 > Yes I can. That's one of the stranger deals. > At 03:30 PM 9/17/2002 -0700, you wrote: >>can you see it using form variable? >> >>form.due_date >> >> >> >>-----Original Message----- >>From: John Gedeon [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, September 17, 2002 2:27 PM >>To: CF-Talk >>Subject: Wierd Form Error >> >> >>i am using cf_formurl2attributs call >>I have a javascript function: >>function mkdate() >> { >> monBox = document.trf.month; >> dayBox = document.trf.day; >> yearBox = document.trf.year; >> var month = monBox.options[monBox.selectedIndex].value; >> var day = dayBox.options[dayBox.selectedIndex].value; >> var year = yearBox.options[yearBox.selectedIndex].value; >> var ddate = month + "-" + day + "-" + year; >> document.trf.due_date.value = ddate; >> } >> >>and select boxes >><select name="month" onchange="mkdate();"> >> <option value="0" selected>Mon >> <option value="1">Jan >> <option value="2">Feb >> <option value="3">Mar >> <option value="4">Apr >> <option value="5">May >> <option value="6">Jun >> <option value="7">Jul >> <option value="8">Aug >> <option value="9">Sep >> <option value="10">Oct >> <option value="11">Nov >> <option value="12">Dec >> </select> >><select name="day" onchange="mkdate();"> >>. >> </select> >><select name="year" onchange="mkdate();"> >>. >> </select> >><input type="hidden" name="due_date" value=""> >> >>And so on the submit >>I try to access attributes.due_date like any other form or url variable >>and >>it tells me it doesnt exist. In the cf debug info due_date is listed as a >>form field but it is not included in the form fieldnames variable. When I >>changed the name from due_date to ddate it worked anyone know why? >> >>John >> >><>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on >>your own understanding;" >> >> >> > ______________________________________________________________________ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

