cfmx + odd action page results
Hello, First of all, I haven't done much CF work since CF 5.0. I DLed the new MX demo version. I have a simple form page. cfparam name=url.holiday default= cfparam name=url.holiday_date default= cfparam name=url.same_date default=1 cfparam name=url.error_message default= !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleInput New Holiday/title /head body table cfform name=theForm action="" method=post tr tdHoliday:/td tdcfinput type=Text name=holiday required=Yes value=#holiday#/td /tr tr tdDate:/td tdcfinput type=Text name=holiday_date value=#holiday_date#/td /tr tr tdRepeat Each Year:/td tdinput name=same_date type=checkbox cfif url.same_datechecked=true/cfif/td /tr tr td colspan=2input type=submit/td /tr /cfform /table /body /html The action page is even simpler so far. !--- inputHoliday_action.cfm --- boo --- It does the oddest thing.THe action page returns an error message. Form entries incomplete or invalid and returns the date.I went back and commented out the finput for the date and it works fine. Can someone point me in the right direction to find out why this error message is being returned? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx + odd action page results
_date is a reserved name in ColdFusionIt allows for automatic form validation.See the section on server-side validation in the documentation there is a whole group if reserved form names used for this. _date _integer _required When these are appended to a form name, Cold Fusion tries to validate a form field. For example if you have a field named MyDate input type=text name-MyDate... and you add this field input type=hidden name=MyDate_date Cold Fusion will validate that the field MyDate contains a date value. HTH -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice:This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx + odd action page results
... cfinput type=Text name=holiday required=Yes value=#holiday# cfinput type=Text name=holiday_date value=#holiday_date# ... It does the oddest thing. THe action page returns an error message. Form entries incomplete or invalid and returns the date. I went back and commented out the finput for the date and it works fine. Can someone point me in the right direction to find out why this error message is being returned? When you name a form field with _date, CF uses that field as a validation rule. There are seven built-in validation rules in CF. So, if you have a form field called my_date, CF will look for a field called my with a valid date value. This isn't new to CFMX, either - it's been around since CF 3 or earlier, I think. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx + odd action page results
At 08:20 6/1/2004 -0700, you wrote: _date is a reserved name in ColdFusionIt allows for automatic form validation.See the section on server-side validation in the documentation there is a whole group if reserved form names used for this. _date _integer _required Good stuff.Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx + odd action page results
Because you have a form field with a name ending on _date.This will give an error in cf4 or cf5 too. Because of CF's built-in server side validation, form field names can't end in _required, _date, _eurodate, _time, _float, _integer, _range (I hope I didn't forget one). -Original Message- From: Won Lee [mailto:[EMAIL PROTECTED] Sent: dinsdag 1 juni 2004 17:11 To: CF-Talk Subject: cfmx + odd action page results Hello, First of all, I haven't done much CF work since CF 5.0. I DLed the new MX demo version. I have a simple form page. cfparam name=url.holiday default= cfparam name=url.holiday_date default= cfparam name=url.same_date default=1 cfparam name=url.error_message default= [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]