[cfaussie] CF10 Form Fields
Hi, I've just found another difference between CF10 and earlier versions and that is the handling of multiple form elements with the same name - like a set of checkbox options. Previously these would be passed through to CF as a simple comma delimited string but in CF10 they appear to be passed as an array. Can anybody else using CF10 confirm this behaviour please? Thanks, Brett B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] CF10 Form Fields
this code produces a list on ACF10 and Railo 4 beta cfdump var=#form# label=form expand=true / form action= method=post oneinput name=test type=checkbox value=1br / twoinput name=test type=checkbox value=2br / threeinput name=test type=checkbox value=3br / input type=submit value=go name=action /form form - structACTIONgoFIELDNAMESTEST,ACTIONTEST1,3 formScopeactionstringgofieldnamesstringtest,actionteststring1,2,3 On 4 July 2012 16:31, Brett Payne-Rhodes bret...@gmail.com wrote: Hi, I've just found another difference between CF10 and earlier versions and that is the handling of multiple form elements with the same name - like a set of checkbox options. Previously these would be passed through to CF as a simple comma delimited string but in CF10 they appear to be passed as an array. Can anybody else using CF10 confirm this behaviour please? Thanks, Brett B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscribe@** googlegroups.com cfaussie%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/cfaussie?hl=en http://groups.google.com/group/cfaussie?hl=en. -- *AJ Mercer* webonix:net strength=Industrial / http://webonix.net | webonix:org community=Open / http://webonix.org http://twitter.com/webonix Railo Community Manager http://www.getrailo.org/index.cfm/community/team/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] CF10 Form Fields
this could be why http://www.boyzoid.com/blog/index.cfm/2012/2/26/ColdFusion-10--Form-Fields-With-the-Same-Name Application.cfc this.sameformfieldsasarray = true; On 4 July 2012 16:31, Brett Payne-Rhodes bret...@gmail.com wrote: Hi, I've just found another difference between CF10 and earlier versions and that is the handling of multiple form elements with the same name - like a set of checkbox options. Previously these would be passed through to CF as a simple comma delimited string but in CF10 they appear to be passed as an array. Can anybody else using CF10 confirm this behaviour please? Thanks, Brett B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscribe@** googlegroups.com cfaussie%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/cfaussie?hl=en http://groups.google.com/group/cfaussie?hl=en. -- *AJ Mercer* webonix:net strength=Industrial / http://webonix.net | webonix:org community=Open / http://webonix.org http://twitter.com/webonix Railo Community Manager http://www.getrailo.org/index.cfm/community/team/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] CF10 Form Fields
Thanks Andrew, The plot thickens but becomes a little clearer... The site is running application.cfm not application.cfc so there is no opportunity to apply that setting and it appears that the 'default' setting only takes effect after application.cfm completes execution. Within application.cfm we are running a blocker script to try and catch SQL injection hacks and that is what is reading the form values - and crashing because of the array. Easily fixed but still a pain in the migration process to CF10. I guess I should bite the bullet and convert to application.cfc. I put up an example here: http://cftest.yoursite.net.au/formtest.cfm Cheers, Brett B) On 4/07/2012 4:53 PM, AJ Mercer wrote: this could be why http://www.boyzoid.com/blog/index.cfm/2012/2/26/ColdFusion-10--Form-Fields-With-the-Same-Name Application.cfc this.sameformfieldsasarray = true; On 4 July 2012 16:31, Brett Payne-Rhodes bret...@gmail.com mailto:bret...@gmail.com wrote: Hi, I've just found another difference between CF10 and earlier versions and that is the handling of multiple form elements with the same name - like a set of checkbox options. Previously these would be passed through to CF as a simple comma delimited string but in CF10 they appear to be passed as an array. Can anybody else using CF10 confirm this behaviour please? Thanks, Brett B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- *AJ Mercer* webonix:net strength=Industrial / http://webonix.net | webonix:org community=Open / http://webonix.org http://twitter.com/webonix Railo Community Manager http://www.getrailo.org/index.cfm/community/team/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.