It's funny...I finally got around to ignoring cfform
in 4.5.2 and running my own validation and using
cfqueryparam, etc...now I'm surrfering because
I'm not using it with CF7...

For now I need to go with a REReplace to strip
out anything but 0-9...could you show me how
to write that?

(Couldn't find that example in my dog-eared copy
of CF Application Kit for 4.0 published in 1998 by
somebody named "Forta"...  :o)

Rick


> -----Original Message-----
> From: Mike Kear [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 06, 2006 10:00 PM
> To: CF-Talk
> Subject: Re: Ok, I give...how can I do this...
>
>
> 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:234393
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