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
type=file; validate_fields() not working.
#1
Trying to use "required, File1, error message" in the validate fields api. Just trying to make sure they actually selected a file. This does not work (validate for email, checkbox, text works as expected).

I can add my own small chunk of PHP to check if $_FILES["file"]["name"] is not null, but I would have expected that the "required" parameter would have done the same. I am currently just modifying the sample code for testing.


Any clues? Thanks ahead of time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)