1
I'm using XoopsFormFile in a "form" to get a filename into $_FILES in my recieving script. I'm doing it in EXACTLY the same manner as wfdownloads does it. But in my recieving script, which is the same as the form script, $_FILES is empty. My code snippet:
$darform = new XoopsThemeForm("", "darentryform", "addedit.php");
$darform->addElement(new XoopsFormFile('Attachment', 'userfile',0));
add submit button here...
$darform->display();
Recieving script:
global $_FILES;
if (empty($_FILES['userfile']['name'])) {
echo "FILES is empty...
";
}
Any help is greatly appreciated...
Doug P