Jun 19th, 2013, 12:37 PM
Hi,
I am going through the tutorial and have had success with validating email and text boxes. I tried to setup a file upload box and although the error shows up that the box is not filled in, when I select a file and then submit it fails and leaves the box blank.
My rule is:
$rules[] = "required,test1,Please add an image.";
and
Test1: <input type="file" name="test1" value="<?=htmlspecialchars(@$fields["test1"])?>" /><br />
for the field.
I would appreciate being pointed in the right direction.
Many Thanks
John
I am going through the tutorial and have had success with validating email and text boxes. I tried to setup a file upload box and although the error shows up that the box is not filled in, when I select a file and then submit it fails and leaves the box blank.
My rule is:
$rules[] = "required,test1,Please add an image.";
and
Test1: <input type="file" name="test1" value="<?=htmlspecialchars(@$fields["test1"])?>" /><br />
for the field.
I would appreciate being pointed in the right direction.
Many Thanks
John