开发者

PHP CHECKBOX Array Issue

I have a list of checkboxes like you would see in most email clients (You tick a box press delete then it deletes an email).

<input type="checkbox" value="yes" name="box[]" />

The problem stands here ...

print_r($_POST['box']);//Returns nothing at all ...

var_dump($_POST['box']);// returns null...

I was reading something about register glo开发者_StackOverflow社区bals that php5 has turned it off for security reason.

Does anyone know what my options are ?


Just found out by playing about with values.

Make sure you check for the enctype attribute on the tag

should be <form method="post" enctype="multipart/form-data">

Hope someone else could find this helpful .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜