javascript if else statement problem
<pre><code>&lt;?php $genderdb = "Male"?&gt;
&lt;script type="text/javascript"&gt;
        var genderdb = "&lt;?php echo $genderdb; ?&gt;";
        if ((genderdb == "Female") || ($genderdb == "Shemale")) {
            var himher = "her";
        } else {
            var himher = "him";
        }
        alert (himher);
&lt;/script&gt;
</code></pre>

<p>If I change php <code>$genderdb = "Female"</code>, then it can alert the value successful. But if $genderdb = "Male", the page won't have alert. Why? Where is the error?</p>
