Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to echo checkbox group?
    text
    copied!<p>Can somebody help me? i cant echo my checkbox group with a multiple selection. Every time i echo the checkbox group the only things show is the last box that Ive check.</p> <p>here's my code</p> <pre><code>&lt;?php $submit = $_POST['submit']; $incharge = $_POST['incharge']; if ($submit) { echo $incharge; } ?&gt; &lt;table width="500" height="69"&gt; &lt;tr&gt; &lt;td width="73"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="1" id="responsible_0" /&gt; MNFA&lt;/label&gt;&lt;/td&gt; &lt;td width="72"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="2" id="responsible_1" /&gt; HJB&lt;/label&gt;&lt;/td&gt; &lt;td width="70"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="3" id="responsible_2" /&gt; JBG&lt;/label&gt;&lt;/td&gt; &lt;td width="75"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="4" id="responsible_3" /&gt; MSG&lt;/label&gt;&lt;/td&gt; &lt;td width="275"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="5" id="responsible_4" /&gt; MGR&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="33"&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="6" id="responsible_5" /&gt; AAP&lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="7" id="responsible_6" /&gt; EPM&lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="8" id="responsible_7" /&gt; SGA&lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="9" id="responsible_8" /&gt; JLL&lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;label&gt; &lt;input type="checkbox" name="incharge" value="10" id="responsible_9" /&gt; AFM&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Thank you in advance.. .</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload