Home >Backend Development >PHP Tutorial >Weird and interesting pitfalls in CI
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.