Echo value based on what checkbox is checked
<p>yesHave a simple thing here, but not that handy in PHP. Basically I have a form that will use jquery .ajax submit based on return from PHP script. This is pseudocode for example only</p>

<p>HTML</p>

<pre><code>&lt;form id="makepost" name="makepost" action="PHP/wronglish_submit.php" method="post"&gt;
    &lt;input type="radio" name="logged" value="yes"&gt;Logged in
    &lt;input type="radio" name="logged" value="no"&gt;Not logged in&lt;br&gt;
    &lt;textarea&gt;&lt;/textarea&gt;
    &lt;input type="submit" name="sw" id="sw" value="Submit!"&gt;
&lt;/form&gt;
</code></pre>

<p>PHP</p>

<pre><code>&lt;?php
    if($_POST['logged'] = "yes")  {
    echo "logged";
    die();
    } else {
    echo "not_logged";
    }
?&gt;
</code></pre>

<p>I know that the first line is not right, can't figure out right way/most efficient way to go about this. I can handle the ajax on the return value, i just can't get it to return the right value.</p>

<p>thx</p>
