Home >Backend Development >PHP Tutorial >Weird and interesting pitfalls in CI

Weird and interesting pitfalls in CI

WBOY
WBOYOriginal
2016-07-30 13:30:411184browse

The following code is correct:

<code><input <span><span>type</span>=</span><span>"checkbox"</span> name=<span>"permission[]"</span><span>value</span>=<span>"valuexxx"</span>/></code>
<code><span>$permissions</span><span>=</span><span>$this</span><span>-></span>input<span>-></span>post ( <span>'permission'</span> );</code>

The permissions in the following code can only obtain the selected number:

<code><input <span><span>type</span>=</span><span>"checkbox"</span> name=<span>"permission"</span><span>value</span>=<span>"valuexxx"</span>/></code>
<code><span>$permissions</span><span>=</span><span>$this</span><span>-></span>input<span>-></span>post ( <span>'permission'</span> );</code>

Copyright Statement: Welcome to reprint, please indicate the original address for reprinting, thank you!

The above has introduced the strange and interesting pitfalls in CI, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php url regular matchingNext article:php url regular matching