thanks james... i too have been annoyed by this, so i'll definitely give it a whirl.
steve -----Original Message----- From: James MacPherson [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 February 2003 11:16 AM To: CFAussie Mailing List Subject: [cfaussie] macintosh form fields snippet Hey all, I'm kinda new to this list, but I have been told that Macintosh form submission has been a recurring problem for discussion... This is one solution to the problem (tested on 4.5 and MX, W2k Server) <cfif IsDefined("form.fieldnames")> <cfloop list="#form.fieldnames#" index="myfieldname"> <cfset tempVar = Right(evaluate("form." & variables.myfieldname),4)> <cfif tempVar neq ".tmp"> <cfset "form.#myFieldname#" = Trim(evaluate("form." & variables.myfieldname))> </cfif> </cfloop> </cfif> This code needs to be included before any form fields are used in a page. I have it in a module and I just call this at the top of the file using the form variables (it overwrites anything in the form scope). <cffile> works fine with this, on a Windows server anyway... hope it helps someone, annoyed me for a while. - James out --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
