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

Weird and interesting pitfalls in CI

WBOY
Release: 2016-07-30 13:30:41
Original
1186 people have browsed it

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>
Copy after login
<code><span>$permissions</span><span>=</span><span>$this</span><span>-></span>input<span>-></span>post ( <span>'permission'</span> );</code>
Copy after login
Copy after login

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>
Copy after login
<code><span>$permissions</span><span>=</span><span>$this</span><span>-></span>input<span>-></span>post ( <span>'permission'</span> );</code>
Copy after login
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template