01-02-2008, 03:11 AM
[eluser]cinewbie81[/eluser]
Hi guys,
I have this on my form:
and here's my form validation
csvFile's rules has been set to 'required' because i want to make sure that users actually browse for a file.
Anyway, the validation error : "The CSV files field must have a value" is always display even though i have already browse for the file. Anyone ? Thanks in advance and Happy New Year 2008.
Hi guys,
I have this on my form:
Code:
form_upload('csvFile', 'csvFile')
and here's my form validation
Code:
$rules['csvFile'] = "required";
$this->validation->set_rules($rules);
$fields['csvFile'] = 'CSV file';
$this->validation->set_fields($fields);
if ($this->validation->run() == FALSE)
{
// Form Validation Error
} else {
// Form Validation Success
}
csvFile's rules has been set to 'required' because i want to make sure that users actually browse for a file.
Anyway, the validation error : "The CSV files field must have a value" is always display even though i have already browse for the file. Anyone ? Thanks in advance and Happy New Year 2008.