how to get multiple radio button values in php
<p>I have a webpage that contains two set of radio buttons. I want to do; if user select a OS in first fieldset and a language from second fieldset, then user must directed to relevant pages.</p>

<p>Please guide me to complete this page. I am unable to get two radio button values at a time. If I rename the radio buttons like below,</p>

<pre><code>&lt;fieldset id="group1"&gt;
    &lt;input type="radio" class="radto" name="android"/&gt;
&lt;/fieldset&gt;
&lt;fieldset id="group1"&gt;
    &lt;input type="radio" class="radto" name="english"/&gt;
&lt;/fieldset&gt;
</code></pre>

<p>It's working, but the problem is users can select more than one OS and language. I need to prevent this. How can I overcome this problem.</p>

<pre><code>&lt;?php
if (isset($_POST['submit'])) {
    if (isset($_POST['android']) &amp;&amp; isset($_POST['english'])) {

        header("location: andro_eng.php");
        exit();
}

    if (isset($_POST['android']) &amp;&amp; isset($_POST['french'])) {

        header("location: andro_fre.php");
        exit();
    }
}

?&gt;

&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form action="" method="post"&gt;
&lt;fieldset id="group1"&gt;
    &lt;li&gt;&lt;input type="radio" class="radto" name="a"/&gt;&amp;nbsp;   &amp;nbsp;android&lt;/li&gt;
    &lt;li&gt;&lt;input type="radio" class="radto" name="a"/&gt;&amp;nbsp;   &amp;nbsp;ios&lt;/li&gt;
    &lt;li&gt;&lt;input type="radio" class="radto" name="a"/&gt;&amp;nbsp;   &amp;nbsp;symbian&lt;/li&gt;
&lt;/fieldset&gt;

&lt;fieldset id="group2"&gt;
    &lt;li&gt;&lt;input type="radio" class="radto" name="b"&gt;&amp;nbsp; &amp;nbsp;english&lt;/li&gt;   
    &lt;li&gt;&lt;input type="radio" class="radto" name="b" &gt;&amp;nbsp; &amp;nbsp;french&lt;/li&gt;
    &lt;li&gt;&lt;input type="radio" class="radto" name="b"&gt;&amp;nbsp; &amp;nbsp;spanish&lt;/li&gt;
&lt;/fieldset&gt;
&lt;input type="submit" value="next" name="submit"&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>