#43966 [Opn]: POST ARRAY FUNCTION

From: Date: Tue, 29 Jan 2008 15:26:48 +0000
Subject: #43966 [Opn]: POST ARRAY FUNCTION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121736@lists.php.net to get a copy of this message
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

« previous php.bugs (#121736) next »