Page 1 of 1

Why are some post variables missing?

Posted: Mon Oct 12, 2009 7:27 am
by waxydock
Hi everyone,

Ive got a pretty simple question to ask, which has got me really confused.

I created a simple form, which has a large number of form fields (mostly simple text fields). When i submit the form to a page and print out the $_POST variable it only displays a certain number of the posted fields.. it leaves off the last 10 or so fields in the form.

Is there any reason why this would happen?

You can see the form thats giving me issues here: http://parampal.com/test.php

To see what values are posted just click the save button at the bottom of the form..

thanks for any help,

Waxydock

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 8:06 am
by markusn00b
Gee, that is strange. Is all you're doing a print_r($_POST)? I cannot see any reason, in the HTML, why the last six rows would not be sent.

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 2:09 pm
by waxydock
yeap, all im doing is print_r($_POST); when the form is submitted...

does php have a limit on the number of form fields you can post?

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 4:51 pm
by superdezign
Are you positive all of the input fields are in the <form> element?

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 5:33 pm
by waxydock
The output for var_dump(ini_get('post_max_size')); was string(2) "8M" ... so im assuming that means the size is 8mb.. is that enough?

Yes im sure all my input fields are in the form tags... i double checked.

Ive attached the php file that im working with if it helps (if possible could someone try it on there server, there might be some limit on my server..)

thanks for any help guys.

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 6:44 pm
by waxydock
Ive taken a good look through cpanel and couldnt find anything to do with the size of POSTDATA...

Would you know if the code runs on your server?

:banghead: this is driving me nuts! lol

thanks for your help mate.

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 7:30 pm
by waxydock

Re: Why are some post variables missing?

Posted: Mon Oct 12, 2009 8:03 pm
by waxydock
actually no, all i did was add a local version of the php.ini file on my server and refer to it in my .htaccess file (which i also just created).

My php.ini file is currently empty, is that ok? If not where can i find a default version of it (i really dont want to muck up my other code)

thx for your help.