i hate to keep on beating a dead horse, but in CFMX7, you just use <cfform instead of <form and have <cfinput name="whatever" label="whatever" validate="numeric" .... and it takes care of it for you. They CANT enter anything but numbers in there.
However since you're not using CFMX7 you can use a javascript validation routine to disallow submitting the form unless there's only numeric in that field. or you can allow them to submit it and use REReplace to strip out all but 0-9 on the server side in your action page. Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 3/7/06, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > What would be the best way to strip out > any content a person might enter besides > numerals, so that IsNumeric(Val(Form.Premium)) > would work? > > (I think I feel a Regex coming on...anyone?) > > Rick > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234380 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