Hey there,
i've got issues when with retrieving posted variables when uploading files. It works with PHP 4.1.1, but for some strange reason not with PHP 4.3.2.
the form is
<form name="form" enctype="multipart/form-data" action="test.php" method="post">
//I've tried it with this line in and without it
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
<input type="file" name="userfile">
<input name="sub" type="submit" value="Send File">
</form>
then when i want to check whether the form has been submitted, with $_POST['sub'] it is not set, eventhough the form has been sent.
Only when i remove enctype="multipart/form-data" is $_POST['sub'] set but then the file isn't uploaded.
Is it some php setting? Or Apache?
I've fiddled with php.ini at nauseum and like i said, it works with the older version of php, but i have to unfortunately use the newer one.
I'd really appreciate some help