How to store the values of all radio buttons checked by the user in a page in PHP on submit
<p>I have the following PHP code displaying the set of questions and multiple answers in a radio buttons.</p>

<pre><code>foreach ($cursor as $obj)
{
    echo ' '.$result["question"].'&lt;br&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    &lt;input type="radio" name="cl[]"&gt; '.$result["ch1"].'&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    &lt;input type="radio" name="cl[]"&gt; '.$result["ch2"].'&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    &lt;input type="radio" name="cl[]"&gt; '.$result["ch3"].'&lt;/p&gt;';
}

&lt;button type="submit"  &gt;Submit&lt;/button&gt;
</code></pre>

<p>I tried following code which is not working,</p>

<pre><code>&lt;?php
if (isset($_POST['submit'])) {
  foreach($_POST['cl'] as $selected) {
    echo "&lt;p&gt;".$selected ."&lt;/p&gt;";
    }
}
?&gt;
</code></pre>

<p>How to store these multiple values in an array?
 How to navigate these array values into another page named page1 on submit?
 How to access these values in another page named page1?</p>

<p>The format would look like below</p>

<pre><code>Part of main memory where it stores data temporarirly

     ROM
     FLOPPY DISK
     RAM

It is a component of operating system that exposes function to user and applications

     Shell
     Kernel
     Shell and Kernel
</code></pre>