Issue with for loop of checkboxes
<p>I have series of checkboxes whom value I am taking and generating a string like....if checkbox is selected I add '1' to string and if it is not selected I add '0' to string. </p>

<pre><code>&lt;input type="checkbox" name="auth_0" id="auth_0" class="checkboxes" value="Yes"/&gt;
</code></pre>

<p>My php script is...</p>

<pre><code>if (isset($_REQUEST["save"])) {
/*      echo $_REQUEST['auth_0'];*/
   for ($i = 0; $i &lt;= 49; $i++) {
        if ($_REQUEST['auth_[$i]'] == 'Yes') {
            $auth_string .= '1';
        } else {
            $auth_string .= '0';
        }
    }
    echo $auth_string;
}
</code></pre>

<p>Though string is generating but its value is always 0 in both cases that if checkbox is selected or not.</p>
