FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Upload box validation
#1
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)