Radio button is not working in PHP
<p>Its giving the error as</p>

<pre><code>Parse error: parse error in C:\Project1\radio.php on line 12
</code></pre>

<p>This code is giving the above mentioned error</p>

<pre><code>&lt;?PHP
    $male_status = 'unchecked';
    $female_status = 'unchecked';
    $var="Default";
    if (isset($_POST['Submit1'])) 
    {   

        //$var="Got set";

        $selected_radio = $_POST['gender'];

        if ($selected_radio = = 'male') 
        {
            $male_status = 'checked';
        }       
        else if ($selected_radio == 'female') 
            $female_status = 'checked';


    }       

?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Radio Buttons&lt;/title&gt;
&lt;script&gt;
 //document.form1.textBox.value="";
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;FORM name ="form1" method ="post" action ="radio.php"&gt;

&lt;Input type = 'Radio' Name ='gender' value= 'male'
&lt;?PHP print $male_status; ?&gt;
&gt;Male

&lt;Input type = 'Radio' Name ='gender' value= 'female'
&lt;?PHP print $female_status; ?&gt;
&gt;Female

&lt;P&gt;
&lt;Input type = "Submit" Name = "Submit1" VALUE = "Select a Radio Button"&gt;
My cal
&lt;Input type = "Text" Name = "textBox" VALUE = "&lt;?php echo $var  ?&gt;"&gt;
&lt;/FORM&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
