 <p>This is rather crude but it should work. On the form :-</p> <pre><code>&lt;input type="checkbox" name="room101" value="1"&gt;Camera 101 &lt;input type="checkbox" name="room102" value="1"&gt;Camera 102 </code></pre> <p>In the PHP code :-</p> <pre><code>$room101 = (int) $_POST['room101']; $room102 = (int) $_POST['room102']; </code></pre> <p>The two variables will have either 1 (Selected) or 0 (Not selected)</p> <p>You could make the two variables an array if there are lots of cameras.</p>