disable a button based on logged in users credentials.
<p>I have a page that is access by several users. Each person logs in and a PHP page looks up the user and verifies the person. This can also pull of information about the users grade. I would like to disable the attached search button if the grade equal 1a or 1b, anyone else is OK. I have other javascript disable a DIV but i can't get it to work here. </p>

<pre><code>    &lt;div id="footer" style="background-color:#3399cc;clear:both;text-align:center;"&gt;&lt;font  color="#000099"&gt;DJR&lt;/font&gt;
    &lt;a href="change.php"class="buttons"&gt;Change password&lt;/a&gt;
    &lt;a href="out.php" class="buttons"&gt;Logout&lt;/a&gt;
    &lt;a href="search.php" class="buttons"&gt;Search&lt;/a&gt;
    &lt;a href="Calendar.php" class="buttons"&gt;Calendar&lt;/a&gt;
    &lt;a href="AL.php" class="buttons"&gt;Leave&lt;/a&gt;
    &lt;/div&gt;
</code></pre>

<p>This is how I get information regarding the current user!</p>

<pre><code>  $fgmembersite-&gt;userID();
</code></pre>

<p>if this equals anything but 1a and 1b then its enabled. Thanks in advance again, always great help on this site. </p>
