title: How can I save the checkbox values on all wordpress pages for the current user?
body: <p>I'm new to wordpress and I have a question
  How can I save the checkbox values on all wordpress pages for the current user? For all other users, the code does not apply.
  I have a code
       <code>&lt;form method="POST"&gt;
       Option One: &lt;input type="checkbox" name="check1" value="1" &lt;?php 
       if(isset($_POST['check1'])) echo 'checked="checked"'; ?&gt; /&gt;
      Option Two: &lt;input type="checkbox" name="check2" value="2" &lt;?php 
      if(isset($_POST['check2'])) echo 'checked="checked"'; ?&gt; /&gt;
      &lt;br&gt;
     &lt;input type="submit" value="Submit" /&gt;
     &lt;/form&gt;</code></p>
  
  <pre><code> `&lt;?php
  
  if(isset($_POST['check1'])){
  
  echo '22222';
  
  
  }
  
  elseif(isset($_POST['check2'])){
  
  
  echo '3455';
  
  }
  
  ?&gt;`
  </code></pre>
  
  <p>but when you go to another page, everything is reset</p>
  
  <p>how do i fix it?
  Tell me please</p>