title: saving checkbox state on reload
body: <p>how do i save checkbox state through sessions? i'm using this jquery code to toggle the options:</p>
  
  <pre><code>$('div.check input:checkbox').bind('change',function(){
      $('#'+this.id+'txt').toggle($(this).is(':checked'));
  });
  </code></pre>
  
  <p>but when i reload, the checkboxes are back to their default state. i know i'd have to use sessions, but how do i make the checkbox state persist using sessions in php? </p>
  
  <p>html:</p>
  
  <pre><code>&lt;div class="check"&gt;
  &lt;p&gt;&lt;input type="checkbox" value="Name" id="name" checked /&gt; &lt;label for="name"&gt;Name&lt;/label&gt;&lt;/p&gt;  
  &lt;p&gt;&lt;input type="checkbox" value="Reference " id="reference" checked /&gt; &lt;label for="reference"&gt;Reference&lt;/label&gt;&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div id="nametxt"&gt; Show Name TEXT &lt;/div&gt;
      &lt;div id="reftxt"&gt; Show Ref TEXT &lt;/div&gt;
  </code></pre>