checkbox status "checked" by default problem
<p>I have a page with search form on it and table with search results below. In search form i have checkbox "Search in this category". What i'm doing to check it by default :</p>

<pre><code>if(!isset($_SESSION['inthiscat'])){
    $_SESSION['inthiscat'] = 'on' ;
    $checked = 'checked';
}
$_GET['inthiscat'] = $_SESSION['inthiscat'];
</code></pre>

<p>checkbox code : INPUT type="checkbox" name="inthiscat"<code>&lt;?=$checked?&gt;</code>.
Link to next page of results index.php?inthiscat=$_GET['inthiscat'].
So the problem is when i uncheck "Search in this category" its still checked when i going to next page of results. How to fix it and what i'm doing wrong? Session startet of course.</p>
