Page 1 of 1

Problem submiting many info throu multipart/form-data

Posted: Tue Jul 29, 2003 10:34 am
by leepeng
I have a file mixing many inputs with 5 files

<form method='post' enctype='multipart/form-data' action='savepublication.php'>
<input type='textbox' name='author_1'>
<input type='textbox' name='title_1'>
<input type='textbox' name='editor_1'>
anothor 4 more inputs.....
<input type='file' name='file_1'>

.... and this kind of thing repeated for 5 times
</form>


In savepublications.php, I should be able to access those form items using $_REQUEST["..."]

I'm keeping the PHP setting max filesize = 2M, max post size = 8M, mem size = 8M

PHP version = 4.2.2

O/S - Linux redhead, version unknown cause not my server

Now the issue is that, sometime in my savepublication.php, I'm able to capture all form items. But sometime only a few of the form items are post successfully to savepublication.php (I'm quite sure the file size didn't exceed the limit)

any advise??

Posted: Tue Jul 29, 2003 1:17 pm
by pootergeist
the input text boxes should be retrieved through the $_POST array and the input file info through the $_FILES array.

var_dump($_POST);
var_dump($_FILES);

would show you what accessible vars are available - the $_FILES['name']['error'] return being most useful I guess.