Problem submiting many info throu multipart/form-data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leepeng
Forum Newbie
Posts: 1
Joined: Tue Jul 29, 2003 10:34 am

Problem submiting many info throu multipart/form-data

Post 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??
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post 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.
Post Reply