Jump to content

$_POST empty


jaymc

Recommended Posts

I have a wierd problem. I have an upload form where you can upload multiple files...

For some reason, its stoppe working. Now ive been working on it for about an hour trying to locate the root of the problem

I've now found that if the total amount of files amount to 8M+ It wont work

Now, obviously the first thing I did was check php.ini

as thought, it was fine

[b]upload_max_filesize = 1000M[/b]

What is happening? It definetly wont go past 8M

Edit: Ive just ran <?php echo ini_get('upload_max_filesize'); ?> and it gave 2M

Huh?
Link to comment
Share on other sites

Their is no point because I havnt changed the script, it just stopped working. No i did open the php.ini file about a week ago but didnt edit anything. So obviously something has happened whilst doing that. But the script is fine, here it is anyway

form code:

[code]<form name='form' action='cheese.php' method='POST' enctype='multipart/form-data'>

<input type='hidden' name='genre' value='Dance'>
<input type='hidden' name='artistnametxt' value='Ian Van Dahl'>
<input type='hidden' name='numtracks' value='13'>
<div align=left style='padding:3px;'><b>1) Enter the album name<BR>2) Fill in all the song names and browse for audio<BR>3) Browse for album cover image<BR>4) When you done the above, click 'Upload Album'</b></div><BR>

<table cellpadding=0 cellspacing=1><tr><td colspan=2 align=center><input type=text name='albumname' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter the album name' onClick="this.select();"><BR><BR></td></tr><tr>


<td><input type=text name='songname1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 1 name' onClick="this.form.songname1.select();"></td>
<td><input type=file name='filename1' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 2 name' onClick="this.form.songname2.select();"></td>
<td><input type=file name='filename2' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 3 name' onClick="this.form.songname3.select();"></td>
<td><input type=file name='filename3' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 4 name' onClick="this.form.songname4.select();"></td>

<td><input type=file name='filename4' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 5 name' onClick="this.form.songname5.select();"></td>
<td><input type=file name='filename5' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 6 name' onClick="this.form.songname6.select();"></td>
<td><input type=file name='filename6' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 7 name' onClick="this.form.songname7.select();"></td>
<td><input type=file name='filename7' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 8 name' onClick="this.form.songname8.select();"></td>
<td><input type=file name='filename8' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 9 name' onClick="this.form.songname9.select();"></td>
<td><input type=file name='filename9' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 10 name' onClick="this.form.songname10.select();"></td>
<td><input type=file name='filename10' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 11 name' onClick="this.form.songname11.select();"></td>

<td><input type=file name='filename11' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 12 name' onClick="this.form.songname12.select();"></td>
<td><input type=file name='filename12' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr>


<td><input type=text name='songname13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Enter track 13 name' onClick="this.form.songname13.select();"></td>
<td><input type=file name='filename13' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr><tr><td><BR><input type=text READONLY style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Browse for album cover'></td>
<td><BR><input type=file name='picture' style="border: 1px solid #000000; background: url('../site/images/linkback.jpg'); cursor:hand; font-family:tahoma; font-size:11px; color:#01305B; font-weight:bold; text-align:center;" value='Click browse'></td></tr>
</table><BR>
<input type=submit value='Upload Album' class=button OnClick="if(valid==true){this.className='uploadgo'; this.value='Uploading..'}"><BR><BR>

<div id = "myDivID"></div>
</form>
[/code]

and here is the PHP

[code]<?
print_r($_POST);
?>[/code]

It works fine, but as I said, when the files amount to over 8M in size, $_POST is empty, so the problem is definetly something to do with upload size/post size
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.