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
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.";


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

Forum Jump:

Users browsing this thread: 1 Guest(s)