drisate Posted February 4, 2011 Share Posted February 4, 2011 Hey guys i am currently building a very complex form for one of my clients. The for has ALOT of imputs and can also generate new one automaticly using javascript. My problem is that come of them returns empty arrays while other works. Is there a maximum or some kind that a form can submit at the time? i made a print_r on the $_POST var and this is what i got (I tooke out all the other arrays but theres a lot more then what i am posting) [...] print ('<tr> <td> <input type="text" size="9" name="styleenc[]" value=""> </td> <td> <input type="text" size="9" name="couleurenc[]" value=""> </td> <td> <input type="text" size="2" name="c_y[]" value=""> </td> <td> <input type="text" size="2" name="c_a_s[]" value=""> </td> <td> <input type="text" size="2" name="c_a_l[]" value=""> </td> <td> <input type="text" size="2" name="c_a_o_s[]" value=""> </td> <td> <input type="text" size="9" name="descenc[]" value=""> <input type="hidden" size="9" name="invisible3[]" value="3"> </td> </tr>'); [...] Array ( [styleenc] => Array ( [0] => [1] => [2] => [3] => [4] => ) [couleurenc] => Array ( [0] => [1] => [2] => [3] => [4] => ) [c_y] => Array ( [0] => [1] => [2] => [3] => [4] => ) [c_a_s] => Array ( [0] => [1] => [2] => [3] => [4] => ) [c_a_l] => Array ( [0] => [1] => [2] => [3] => [4] => ) [c_a_o_s] => Array ( [0] => [1] => [2] => [3] => [4] => ) [descenc] => Array ( [0] => [1] => [2] => [3] => [4] => ) [invisible3] => Array ( [0] => 3 [1] => 3 [2] => 3 [3] => 3 [4] => 3 ) [emplacement] => sdcwedf ) They should all have values i don't get it ... the only one that has values is invisible3 that has been manualy specified with value="3" Quote Link to comment https://forums.phpfreaks.com/topic/226693-empty-post-array/ Share on other sites More sharing options...
artur.kaze Posted February 4, 2011 Share Posted February 4, 2011 Please post your HTML code and PHP code. Quote Link to comment https://forums.phpfreaks.com/topic/226693-empty-post-array/#findComment-1169902 Share on other sites More sharing options...
drisate Posted February 4, 2011 Author Share Posted February 4, 2011 Yeah it's a lot of code so i attached it to this post (change the upload.php to a .js file. We can't post .js here for some reason. You will also need to add it to the top of PostProb.php to test the form <script type="text/javascript" src="upload.js"></script> [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/226693-empty-post-array/#findComment-1169911 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.