In Coldfusion 5 (I'm so used to working in MX now that I forget what 
don't work right in 5!) is there a more compact, better way to do this:

This checks for unwanted crap coming from a form before sending email...

<cfif IsDefined("form.firstName") AND 
(findoneof("!<[^>]+%>!=",form.firstName,1) EQ 0) AND
  IsDefined("form.lastName") AND 
(findoneof("!<[^>]+%>!=",form.lastName,1) EQ 0)
AND isEmail(form.email)>

<cfmail ......



*HAS* to go the a CF 5 server. Nothing I can do!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229603
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

Reply via email to