Can't $_POST values from disabled Radio buttons
<p>I have two pages, in the first page I submit the form which contains Radio buttons.</p>

<p>From the second page, I try to read the responses from the Radio buttons using the $_POST.</p>

<p>The problem is when I hit submit, the $_POST in the second page reads NULL.
But when I'm not disabling the Radio buttons in the first page the $_POST form the second page reads the data from the Radio butons correctly.</p>

<p>Is there any solution to make the $_POST reads the values of disabled Radio buttons?</p>

<p>I'm using this Javascript code to disable the radio buttons when the user clicks on it:</p>

<pre><code>function disableRadio(groupName){
        var radio=document.getElementsByName(groupName);
        for(c=0;c&lt;radio.length;c++)
            radio[c].disabled=true;
}
</code></pre>

<p>Here is a simple code from each of the two pages.</p>

<p>Page1:</p>

<pre><code>echo '&lt;form action="Page2.php" method="post"&gt;',
     "&lt;input type='radio' name='Question1' value='1' onClick='disableRadio(Question1)' /&gt;",
     "&lt;input type='radio' name='Question1' value='2' onClick='disableRadio(Question1)' /&gt;",
     "&lt;input type='radio' name='Question1' value='3' onClick='disableRadio(Question1)' /&gt;",
     "&lt;div&gt;&lt;input type='submit' value='Submit'&gt;&lt;/div&gt;",
     "&lt;/form&gt;";
</code></pre>

<p>Page2:</p>

<pre><code>$response=$_POST['Question1'];
echo $response;
</code></pre>

<hr>

<h2>Update to this question</h2>

<p>When using the ReadOnly attribute, the Radio buttons in the group are still click-able. So, I decided to Disable the other Radio buttons. Is there a better solution, as I don't want the user to have the feeling that he is able to change the answer.</p>
