Jacob, Excellent point. I love to use Cfparam for type="numeric" and put a try/catch around it. I have not used it for the new CF-7 param types yet, but it's a great tag.
....................... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com "You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills." - Napoleon Dynamite -----Original Message----- From: Munson, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 5:37 PM To: CF-Talk Subject: RE: if/switch cf:set/param One thing I haven't seen anybody else mention is that cfparam can be used for data validation, using the type attribute. For example, if you are expecting an email address from a form, you can do a cfparam with type="email" and CF will throw an error if the data doesn't match (the email type is new to CF 7). > -----Original Message----- > From: Paul Ihrig [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 01, 2006 3:55 PM > > ok. > just looking at a bunch of code. > > most pages use a combo of if & switch > what are the reasons to use one over the other. > > also what is the difference between cfset & cfparam. > i know cfset sets the variable you want to be but dosnt cfparam also > do this? This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242022 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

