Can I check whether Java is enabled from PHP
<p>I would like to detect whether java is enabled in the user's browser when they use my website(php).</p>

<p>If java is enabled a certain div loads on the website if not another div loads. </p>

<p>I do the following:</p>

<p>in the PHP header file: (so whatever loads it checks whether java is enabled)</p>

<pre><code>&lt;?php $no_java=0;?&gt;

&lt;noscript&gt;&lt;input type="image" src="whatever.jpg" id="java_checker" value="1"&gt;&lt;/noscript&gt;
</code></pre>

<p>This a 1px by 1px transparent image which can't be seen but it's better than a text box which can be seen. </p>

<pre><code>if(java_checker==1){
    $no_java=1;
}else{
    $no_java=1
}
</code></pre>

<p>I've been programming in PHP for a few months now. I know that the <code>if(java_checker==1)</code> is not right but I don't know how to check the value without submitting a form etc... </p>

<p>Anyone could tell me how to do it? the <code>value="&lt;?php $no_java=1;?&gt;"</code> is not good because the php part seems to load regardless to the <code>&lt;noscript&gt;</code> tags :( </p>

<p>Any idea? Or any other idea how I could "tell" php that there is no java so do whatever... </p>
