以下程式碼是正確的:
<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>
以下程式碼中的permissions 只能取得選取的數量:
<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>
版權聲明:歡迎轉載,轉載請註明原地址,謝謝!
以上就介紹了CI中奇葩有趣的坑,包括了方面的內容,希望對PHP教程有興趣的朋友有幫助。