|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-29 15:26 UTC] marcel at zwerfkei dot nl
[2008-01-29 16:22 UTC] msaraujo@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 06:00:01 2025 UTC |
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.