How to test % of users with javascript turned on
<p>Trying to test the # of users if javascript is turned on.  I thought this trick would work, but forgot that the php executes either way.  </p>

<pre><code>&lt;script&gt;
&lt;?php
    $sql_insert = "INSERT IGNORE into `test_javascript` (`javascript`,`dateTime`) VALUES ('1',now())";          
    mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error());
?&gt;
&lt;/script&gt;
&lt;noscript&gt;
&lt;?php
    $sql_insert = "INSERT IGNORE into `test_javascript` (`javascript`,`dateTime`) VALUES ('0',now())";          
    mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error()); 
?&gt;
&lt;/noscript&gt;
</code></pre>

<p>Any ideas on how to fix this script or other ways to find % of users with javascript turned on.  </p>

<p>60% of our users use IE, and a few of them (that we know of), don't have javascript enabled, so I'd like to get a better sense of the number of users without javascript.  </p>
