ID:               43966
 User updated by:  marcel at zwerfkei dot nl
-Summary:          
https://87.249.105.116:8443/sitepreview/http/zwerfkei.nl/admin/test.php
 Reported By:      marcel at zwerfkei dot nl
 Status:           Open
 Bug Type:         Arrays related
 Operating System: Linux 2.6.18
 PHP Version:      5.2.5
 New Comment:

no comment


Previous Comments:
------------------------------------------------------------------------

[2008-01-29 15:24:29] marcel at zwerfkei dot nl

Description:
------------
I have troubles with the next script. I check the post with Firebug in
Firefox and the script is sending the post but it receive no data.

I have write the script for Ajax but also in php (see example).


 

Reproduce code:
---------------
        <form action="'.$_SERVER['PHP_SELF'].'" method="POST"
enctype="multipart/form-data">
                <input type="checkbox" value="0" name="thema[]" />0<br />
                <input type="checkbox" value="1" name="thema[]" />1<br />

                <input type="checkbox" value="2" name="thema[]" />2<br />
                <input type="checkbox" value="3" name="thema[]" />3<br />
                <input type="hidden" value="check" name="check" />
                <input type="submit" value="verzend" />
        </form>

Expected result:
----------------
The hidden field check is do the right thing. So the POST function is
working.

if(!empty($_POST['thema'])){
        print_r($_POST['thema']);
}

I also tried:
foreach($_POST['thema'] as $post){
        echo $post;
}

both results are empty.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43966&edit=1

Reply via email to