View Single Post
Old 01-24-2011, 07:59 AM   PM User | #12
samudradaka
New to the CF scene

 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
samudradaka is an unknown quantity at this point
Thanks for the very useful form class. One tweak, in the validation section i needed to change:

PHP Code:
if(is_array($filled) && in_array($name$filled) && ($values[0] != 'file' && !strlen($_POST[$name]))) 
to

PHP Code:
if(is_array($filled) && in_array($name$filled) && ($values[0] != 'file' && $values[0] != 'raw' && !strlen($_POST[$name]))) 
so adding - && $values[0] != 'raw'

this is in order to prevent 'raw' elements being counted as elements to be validated - thus preventing the form from being validated.

Last edited by samudradaka; 01-24-2011 at 08:04 AM..
samudradaka is offline   Reply With Quote