Thanks Alan, Noam and Dan
Its the old CF server side validation:
having a field called 'foo_date' is a signal to CF to do date validation on
the field 'foo'.
(also _eurodate, _float, _integer, _required, _range, _required, _time
CKWACK page 317)
The "foo_date" field gets passed as normal EXCEPT that it doesn't appear in
the forms.fieldnames, hence why cf_formsURL2attributes ignores it.
Hmmm....
Bert Dawson
> -----Original Message-----
> From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
> Sent: 08 August 2000 16:42
> To: '[EMAIL PROTECTED]'
> Subject: RE: form field not being scoped as attributes variable
>
>
> I bet if you go through HTML that CF generates, and do a word
> search for
> "_date", you'll find it as part of a JavaScript validation or
> something... I
> had a form once where that was the problem; solution was to
> rename the form
> field.
>
> Alan McCollough
> Web Programmer
> Alaska Native Medical Center
>
> > -----Original Message-----
> > From: Bert Dawson [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 08, 2000 7:44 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: form field not being scoped as attributes variable
> >
> > I've got a form with a field NAME="trk_published_date", but
> when i submit
> > the form, the attributes.trk_published_date variable is not
> being created.
> >
> > It is fine if i rename the field to trk_published_dat, or
> > trk_published_datee, or i can create the variable myself from the
> > form.trk_published_date.
> >
> > Am I missing something obvious?
> > Can anyone else reproduce this (see below for the code)?
> > Anyone come across anything like this before?
> >
> > <!--- start of index.cfm --->
> >
> > <cf_formURL2attributes>
> >
> > <FORM ACTION="index.cfm" METHOD="post">
> > <INPUT TYPE="Text" NAME="trk_published_date"
> > VALUE="trk_published_date"><BR>
> > <INPUT TYPE="Text" NAME="trk_published_dat"
> > VALUE="trk_published_dat"><BR>
> > <INPUT TYPE="Text" NAME="trk_published_datee"
> > VALUE="trk_published_datee"><BR>
> >
> > <INPUT TYPE="submit" NAME="button">
> > </FORM>
> >
> > <CFIF IsDefined('attributes.button')>
> > <CFOUTPUT>
> > trk_published_dat = #attributes.trk_published_dat#<BR>
> > trk_published_datee = #attributes.trk_published_datee#<BR>
> >
> > <CFIF IsDefined('attributes.trk_published_date')>
> > is defined: #attributes.trk_published_date#. <BR>
> > This never happens on my server - what is going on? <BR>
> > Bert<BR>
> > <CFELSE>
> > WHY IS trk_published_date NOT DEFINED ?????<BR>
> > <CFSET attributes.trk_published_date =
> form.trk_published_date>
> > #attributes.trk_published_date#
> > </CFIF>
> > </CFOUTPUT>
> > </CFIF>
> >
> > <!--- end of index.cfm --->
> >
> >
> > Bert Dawson
> >
> --------------------------------------------------------------
> ------------
> > ----
> > To Unsubscribe visit
> >
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.