Jump to content

Recommended Posts

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"

Link to comment
https://forums.phpfreaks.com/topic/226693-empty-post-array/
Share on other sites

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]

Link to comment
https://forums.phpfreaks.com/topic/226693-empty-post-array/#findComment-1169911
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.