On 11/7/05, Sean Corfield <[EMAIL PROTECTED]> wrote: > I can't repro this based on your code - can you give more details > about *exactly* what the error is and where it is occurring?
Ah, I see what you mean now. The error is coming from the <cfmail> tag because the RegistrantEMail field is an empty string. Your comment about "string is 0" confused me! So you're saying that in CFMX 6.1 you didn't get back empty fields at all whereas CFMX 7 returns all the form fields but with empty values if they were not input? Interesting. I guess I would have been more surprised by the CFMX 6.1 behavior. Can someone running 6.1 confirm that unentered form fields do *not* get returned on a submit? (I'm about to run out the door otherwise I'd fire up a 6.1 instance and test it) > On 11/7/05, Ken Ketsdever <[EMAIL PROTECTED]> wrote: > > Minus the funny wrapping is there anything wrong here? > > > > Only 30% of our employees have email addresses, yet we ask for email as > > part of an online registration process. So I set incorporated a cfparam > > to be used when no email address is submitted. > > > > This is some code that I believe has been working for several months. > > Recently we upgraded to MX 7.01 Enterprise from MX 6.xx. > > > > Now I am getting errors that the form.RegistrantEmail string is 0 if no > > email address is submitted. I would expect the cfparam to be passed in > > for those who do not submit an email address. > > > > Form Page: > > <form > > action="TrainingRegistration.cfm?CalendarId=#Trim(TrainingCalendarDetail > > Output.CalendarId)#" Method="post"> > > Name: <input type="text" name="Registrant"> <br/><br/> > > E-Mail: <input type="text" name="RegistrantEMail" size="40"><br><br> > > Phone Number: <input type="text" name="Phone" size="12"><br/><br/> > > <input type="submit" value="Register Now" name="Register Now"> > > </form> > > > > Action Page: > > > > <cfparam name="form.RegistrantEMail" > > default="[EMAIL PROTECTED]"> > > > > <cfmail type="HTML" to="[EMAIL PROTECTED]" > > from="#form.RegistrantEMail#" subject="Class Registration" port=25 > > timeout=60> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223546 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

