:       <cfif NOT ReFind("[0-9]", form.job_amount,"True")>

This only checks to see if a digit exists.  Try something like this:

        <cfif ReFind("[^0-9]", form.job_amount) or (form.job_amount is "")>
                <cfset error.....

It checks to see if there's anything /except/ digits or if the field is
empty.  Keep in mind that this will trip on "1.6" or on "5   " (because of
the spaces).  Depending on exactly what you want to validate for, you may
want to trim the variable first, look for decimal points and +/- signs, etc.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to