JavaScript return and php problem (true,false)
<p>now i made JavaScript code (jquery code) and when i click ok it return true if i want true and false if i want false</p>

<p>now the problem is php not consider true as <code>php keyword true</code> its just consider it a word like any other word and i must make it like this</p>

<pre><code>if($post == 'true')
</code></pre>

<p>and i want make it like this</p>

<pre><code>if($post) // retuen true if $post true
</code></pre>

<p>how i can do that
and i use jquery function <code>is()</code> to send true or false to php</p>
